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/symtab.c | |
parent | 1ee8702db9cb2a329c9df0938667e2415b0c9e46 (diff) | |
download | gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.zip gdb-9675da25357c7a3f472731ddc6eb3becc65b469a.tar.gz 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/symtab.c')
-rw-r--r-- | gdb/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 8ab1f58..ac6535f 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -424,7 +424,7 @@ minimal_symbol::value_address (objfile *objfile) const if (this->maybe_copied) return get_msymbol_address (objfile, this); else - return (this->value_raw_address () + return (CORE_ADDR (this->value_raw_address ()) + objfile->section_offsets[this->section_index ()]); } |