diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2024-09-10 14:42:30 -0300 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2024-09-20 17:02:16 -0300 |
commit | 59d41830a3dae0120e0d223f91241ad40e7ca737 (patch) | |
tree | 89846ba9d94da9c70b67af6b46c1a9c1f51d4d82 /gdb/stabsread.h | |
parent | 3cd1748a7d156dcf7cdaed0a7f6dede6eebbcc11 (diff) | |
download | gdb-59d41830a3dae0120e0d223f91241ad40e7ca737.zip gdb-59d41830a3dae0120e0d223f91241ad40e7ca737.tar.gz gdb-59d41830a3dae0120e0d223f91241ad40e7ca737.tar.bz2 |
gdb: fully separate coff and elf reading from dbx
With the previous commits, the only thing entangling elf and coff file
reading with dbx file reading is the functions
{elf|coff}stab_build_psymtabs, defined in dbxread.c. These functions
depend on dbx_symfile_read.
To solve this, I renamed read_stabs_symtab to read_stabs_symtab_1, and
created a function with the original name that does what
dbx_symfile_read used to do.
This way, dbx_symfile_read can just call read_stabs_symtab, and the elf
and coff psymtab builders can also call it directly, fully disentangling
the readers, which would allow us to selectively not compile dbxread in
the future.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/stabsread.h')
-rw-r--r-- | gdb/stabsread.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/stabsread.h b/gdb/stabsread.h index 7e59999..418c4fb 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -189,8 +189,7 @@ extern void process_one_symbol (int, int, CORE_ADDR, const char *, debugging information is available. */ void -read_stabs_symtab (minimal_symbol_reader &, - psymtab_storage *, struct objfile *); +read_stabs_symtab (struct objfile *, symfile_add_flags); extern void elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, |