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/elfread.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/elfread.c')
-rw-r--r-- | gdb/elfread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index 5dc8f21..c5ba883 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1198,8 +1198,10 @@ elf_symfile_read_dwarf2 (struct objfile *objfile, { bool has_dwarf2 = true; - if (dwarf2_has_info (objfile, NULL, true)) - dwarf2_initialize_objfile (objfile); + if (dwarf2_initialize_objfile (objfile, nullptr, true)) + { + /* Nothing. */ + } /* If the file has its own symbol tables it has no separate debug info. `.dynsym'/`.symtab' go to MSYMBOLS, `.debug_info' goes to SYMTABS/PSYMTABS. `.gnu_debuglink' may no longer be present with |