error ("Request to enable unknown or unsupported exception event.");
}
- /* Copy break address into new sal struct, malloc'ing if needed. */
+ /* Copy break address into new sal struct, malloc'ing if needed. */
if (!break_callback_sal)
- {
- break_callback_sal = (struct symtab_and_line *) xmalloc (sizeof (struct symtab_and_line));
- }
+ break_callback_sal = XMALLOC (struct symtab_and_line);
init_sal (break_callback_sal);
break_callback_sal->symtab = NULL;
break_callback_sal->pc = eh_break_addr;
off += incr;
}
- for (i = 0;
- i < sizeof(hppa_hpux_tramp_reg) / sizeof(hppa_hpux_tramp_reg[0]);
- i++)
+ for (i = 0; ARRAY_SIZE (hppa_hpux_tramp_reg); i++)
{
if (hppa_hpux_tramp_reg[i] > 0)
info->saved_regs[hppa_hpux_tramp_reg[i]].addr = off + szoff;
tdep->unwind_adjust_stub = hppa_hpux_unwind_adjust_stub;
- set_gdbarch_in_solib_return_trampoline (gdbarch,
- hppa_hpux_in_solib_return_trampoline);
+ set_gdbarch_in_solib_return_trampoline
+ (gdbarch, hppa_hpux_in_solib_return_trampoline);
set_gdbarch_skip_trampoline_code (gdbarch, hppa_hpux_skip_trampoline_code);
set_gdbarch_push_dummy_code (gdbarch, hppa_hpux_push_dummy_code);