diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-01 09:51:04 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-08 18:40:21 -0700 |
commit | aecbdf5f34bcb781bd3191bfbe0a32a129391e93 (patch) | |
tree | 63a2160a032425766bf84de962fd5326ee3507e4 /gdb/xcoffread.c | |
parent | 33c6eaaefcedd45e86d564d014f14cce2620f933 (diff) | |
download | gdb-aecbdf5f34bcb781bd3191bfbe0a32a129391e93.zip gdb-aecbdf5f34bcb781bd3191bfbe0a32a129391e93.tar.gz gdb-aecbdf5f34bcb781bd3191bfbe0a32a129391e93.tar.bz2 |
Simplify the public DWARF API
dwarf2_has_info and dwarf2_initialize_objfile are only separate
because the DWARF reader implemented lazy psymtab reading. However,
now that this is gone, we can simplify the public DWARF API again.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 856fa13..13ee310 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2871,8 +2871,7 @@ xcoff_initial_scan (struct objfile *objfile, symfile_add_flags symfile_flags) /* DWARF2 sections. */ - if (dwarf2_has_info (objfile, &dwarf2_xcoff_names)) - dwarf2_initialize_objfile (objfile); + dwarf2_initialize_objfile (objfile, &dwarf2_xcoff_names); } static void |