aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-cmd.c
diff options
context:
space:
mode:
authorGuinevere Larsen <guinevere@redhat.com>2024-09-17 10:16:30 -0300
committerGuinevere Larsen <guinevere@redhat.com>2024-09-20 17:02:13 -0300
commit3cd1748a7d156dcf7cdaed0a7f6dede6eebbcc11 (patch)
tree7d319c84110e2897643851092f81c962e481aa56 /gdb/python/py-cmd.c
parent64a1f185b376c83278d1fe2ef0ad8a79aeffcb24 (diff)
downloadbinutils-3cd1748a7d156dcf7cdaed0a7f6dede6eebbcc11.zip
binutils-3cd1748a7d156dcf7cdaed0a7f6dede6eebbcc11.tar.gz
binutils-3cd1748a7d156dcf7cdaed0a7f6dede6eebbcc11.tar.bz2
gdb: Move read_dbx_symtab to stabsread, and rename to read_stabs_symtab
Despite the name, read_dbx_symtab is not only used for the dbx file format (also called the aout format). It is used by elf and coff implicitly as well. So I think it makes more sense to have this function in the generic stabsread file, so that reading elf files or coff files depends less on GDB's ability to read dbx files. There were 11 static functions in dbxread that were onlyl helper functions, they were moved and kept as static in stabsread.c. Notably, dbx_read_symtab - which is installed as a callback on legacy_psymtab for aout, elf and coff at least - has been moved to stabsread.c and renamed as well; the function that is specific to aout is dbx_symfile_read, and that hasn't been moved. Some macros had to be moved as well, but since they are still used in dbxread, they were moved to the .h file that the struct symloc is declared, so anyone can properly use the struct. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-cmd.c')
0 files changed, 0 insertions, 0 deletions