aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-26 10:29:22 -0700
committerTom Tromey <tom@tromey.com>2023-03-08 12:11:49 -0700
commit100e3935319c862235239d06e963f8b807624d90 (patch)
tree404bfcf0c9305d56feb9ab89e1dc7d507f3911f9 /gdb/psymtab.c
parent5992fb8541f1c108681468bb48640f0c7dec1709 (diff)
downloadgdb-100e3935319c862235239d06e963f8b807624d90.zip
gdb-100e3935319c862235239d06e963f8b807624d90.tar.gz
gdb-100e3935319c862235239d06e963f8b807624d90.tar.bz2
Remove OBJF_REORDERED
OBJF_REORDERED is set for nearly every object format. And, despite the ominous warnings here and there, it does not seem very expensive. This patch removes the flag entirely. Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index c9fd6f5..95a53b9 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -102,8 +102,7 @@ find_pc_sect_psymtab_closer (struct objfile *objfile,
many partial symbol tables containing the PC, but
we want the partial symbol table that contains the
function containing the PC. */
- if (!(objfile->flags & OBJF_REORDERED)
- && section == NULL) /* Can't validate section this way. */
+ if (section == nullptr)
return pst;
if (msymbol.minsym == NULL)