diff options
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index db3e63d..ee947bd 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -452,7 +452,7 @@ maintenance_translate_address (char *arg, int from_tty) CORE_ADDR address; struct obj_section *sect; char *p; - struct minimal_symbol *sym; + struct bound_minimal_symbol sym; struct objfile *objfile; if (arg == NULL || *arg == 0) @@ -487,13 +487,13 @@ maintenance_translate_address (char *arg, int from_tty) else sym = lookup_minimal_symbol_by_pc (address); - if (sym) + if (sym.minsym) { - const char *symbol_name = SYMBOL_PRINT_NAME (sym); + const char *symbol_name = SYMBOL_PRINT_NAME (sym.minsym); const char *symbol_offset - = pulongest (address - SYMBOL_VALUE_ADDRESS (sym)); + = pulongest (address - SYMBOL_VALUE_ADDRESS (sym.minsym)); - sect = SYMBOL_OBJ_SECTION(sym); + sect = SYMBOL_OBJ_SECTION(sym.minsym); if (sect != NULL) { const char *section_name; |