aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-17 16:37:15 -0600
committerTom Tromey <tom@tromey.com>2023-03-28 15:12:43 -0600
commit584d0cdac2b1fee77adb587052decfce12077469 (patch)
tree011aa24c2e4e17e2fed576477db52cc1773005dc /gdb/psymtab.c
parent257c302c6952fb77af456a44f2ab117fa290c01b (diff)
downloadbinutils-584d0cdac2b1fee77adb587052decfce12077469.zip
binutils-584d0cdac2b1fee77adb587052decfce12077469.tar.gz
binutils-584d0cdac2b1fee77adb587052decfce12077469.tar.bz2
Use unrelocated_addr in partial symbol tables
This changes partial symbol tables to use unrelocated_addr for the text_high and text_low members. This revealed some latent bugs in ctfread.c, which are fixed here.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 95a53b9..484199b 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1110,7 +1110,7 @@ psymbol_functions::has_unexpanded_symtabs (struct objfile *objfile)
partial_symtab::partial_symtab (const char *filename,
psymtab_storage *partial_symtabs,
objfile_per_bfd_storage *objfile_per_bfd,
- CORE_ADDR textlow)
+ unrelocated_addr textlow)
: partial_symtab (filename, partial_symtabs, objfile_per_bfd)
{
set_text_low (textlow);
@@ -1653,7 +1653,7 @@ maintenance_check_psymtabs (const char *ignore, int from_tty)
gdb_printf (" psymtab\n");
}
}
- if (ps->raw_text_high () != 0
+ if (ps->raw_text_high () != unrelocated_addr (0)
&& (ps->text_low (objfile) < b->start ()
|| ps->text_high (objfile) > b->end ()))
{