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/coffread.c | |
parent | 33c6eaaefcedd45e86d564d014f14cce2620f933 (diff) | |
download | fsf-binutils-gdb-aecbdf5f34bcb781bd3191bfbe0a32a129391e93.zip fsf-binutils-gdb-aecbdf5f34bcb781bd3191bfbe0a32a129391e93.tar.gz fsf-binutils-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/coffread.c')
-rw-r--r-- | gdb/coffread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 3736363..3a64325 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -716,10 +716,10 @@ coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) *info->stabsects, info->stabstrsect->filepos, stabstrsize); } - if (dwarf2_has_info (objfile, NULL)) + + if (dwarf2_initialize_objfile (objfile)) { - /* DWARF2 sections. */ - dwarf2_initialize_objfile (objfile); + /* Nothing. */ } /* Try to add separate debug file if no symbols table found. */ |