aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-hpux-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-12-21 21:34:25 +0000
committerTom Tromey <tromey@redhat.com>2011-12-21 21:34:25 +0000
commita5bd37c3cab43e33d3c2daf0586d6401e0dca8fd (patch)
treee513eef621cbc79f0b273a15cd5f9aba8a6598ed /gdb/hppa-hpux-tdep.c
parent0af1e9a54ba5bef7cbeeb0c65a311be8e0cfdd9d (diff)
downloadgdb-a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd.zip
gdb-a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd.tar.gz
gdb-a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd.tar.bz2
* hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
ALL_OBJFILE_MSYMBOLS. (hppa_hpux_find_dummy_bpaddr): Likewise. * jit.c (jit_object_close_impl): Use terminate_minimal_symbol_table.
Diffstat (limited to 'gdb/hppa-hpux-tdep.c')
-rw-r--r--gdb/hppa-hpux-tdep.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c
index 00ccf70..852c4b4 100644
--- a/gdb/hppa-hpux-tdep.c
+++ b/gdb/hppa-hpux-tdep.c
@@ -957,7 +957,6 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
struct hppa_objfile_private *priv;
CORE_ADDR addr;
struct minimal_symbol *msym;
- int i;
sec = find_pc_section (pc);
obj = sec->objfile;
@@ -980,7 +979,7 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
scheme; try to read in blocks of code, and look for a "bve,n (rp)"
instruction. These are likely to occur at the end of functions, so
we only look at the last two instructions of each function. */
- for (i = 0, msym = obj->msymbols; i < obj->minimal_symbol_count; i++, msym++)
+ ALL_OBJFILE_MSYMBOLS (obj, msym)
{
CORE_ADDR begin, end;
char *name;
@@ -1088,7 +1087,6 @@ hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr)
struct unwind_table_entry *u;
struct minimal_symbol *msym;
CORE_ADDR func;
- int i;
sec = find_pc_section (addr);
if (sec)
@@ -1108,9 +1106,7 @@ hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr)
work. */
find_pc_partial_function (addr, NULL, &func, NULL);
- for (i = 0, msym = sec->objfile->msymbols;
- i < sec->objfile->minimal_symbol_count;
- i++, msym++)
+ ALL_OBJFILE_MSYMBOLS (sec->objfile, msym)
{
u = find_unwind_entry (SYMBOL_VALUE_ADDRESS (msym));
if (func != SYMBOL_VALUE_ADDRESS (msym)