diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-12-10 10:45:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-12-10 10:45:33 +0000 |
commit | 3cd36e7c72e3d4b36683ff99ca763a055b0d431c (patch) | |
tree | 0f80d3b5b1722d8285b487c8e7e13f0bf8f98acc | |
parent | 08d5305588d484c9ed15035a066f0d55f3b1e123 (diff) | |
download | gdb-3cd36e7c72e3d4b36683ff99ca763a055b0d431c.zip gdb-3cd36e7c72e3d4b36683ff99ca763a055b0d431c.tar.gz gdb-3cd36e7c72e3d4b36683ff99ca763a055b0d431c.tar.bz2 |
* hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
(hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
(hppa_hpux_init_abi): Reformat long line.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/hppa-hpux-tdep.c | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 88d3c86..4aa6ea7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-12-10 Mark Kettenis <kettenis@gnu.org> + + * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC. + (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE. + (hppa_hpux_init_abi): Reformat long line. + 2004-12-09 Mark Kettenis <kettenis@gnu.org> * hppa-hpux-tdep.c: Include "regset.h". diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index 6a63303..2a08d22 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -999,11 +999,9 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable) 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; @@ -1171,9 +1169,7 @@ hppa_hpux_sigtramp_frame_unwind_cache (struct frame_info *next_frame, 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; @@ -1666,8 +1662,8 @@ hppa_hpux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) 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); |