diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-19 10:24:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-28 15:12:44 -0600 |
commit | 9675da25357c7a3f472731ddc6eb3becc65b469a (patch) | |
tree | 54d600ccb876d7db6056c0aa97b7579878027f18 /gdb/symmisc.c | |
parent | 1ee8702db9cb2a329c9df0938667e2415b0c9e46 (diff) | |
download | fsf-binutils-gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.zip fsf-binutils-gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.tar.gz fsf-binutils-gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.tar.bz2 |
Use unrelocated_addr in minimal symbols
This changes minimal symbols to use unrelocated_addr. I believe this
detected a latent bug in add_pe_forwarded_sym.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index a09b541..2483d31 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -201,7 +201,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) /* Use the relocated address as shown in the symbol here -- do not try to respect copy relocations. */ - CORE_ADDR addr = (msymbol->value_raw_address () + CORE_ADDR addr = (CORE_ADDR (msymbol->value_raw_address ()) + objfile->section_offsets[msymbol->section_index ()]); gdb_puts (paddress (gdbarch, addr), outfile); gdb_printf (outfile, " %s", msymbol->linkage_name ()); |