aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2023-09-20 13:22:12 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2023-09-21 18:56:30 -0700
commit7434de7ef9aef6307de8cb8244ca27a67dc99245 (patch)
treeccefe47252d1f1abc23b4c04f73d81e1bb97e8c8 /gdb/stack.c
parentb3453e999ace1099d0ae7a51551fa8b4942e5f72 (diff)
downloadgdb-7434de7ef9aef6307de8cb8244ca27a67dc99245.zip
gdb-7434de7ef9aef6307de8cb8244ca27a67dc99245.tar.gz
gdb-7434de7ef9aef6307de8cb8244ca27a67dc99245.tar.bz2
gprofng: 30834 improve disassembly output for call and branch instructions
This patch makes the gprofng disassembler to emit, e.g. call fprintf@plt [ 0x401060, .-0x49c] instead of call 0xfffffffffffffb64 I use bfd_get_synthetic_symtab() to get function names in the .plt section. I have not yet modified Elf-reader in gprofng to remove parsing of .symtab or .dynsym sections. But we plan to do it. gprofng/ChangeLog 2023-09-20 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> PR gprofng/30834 * src/Disasm.cc: Show the function name in the call instruction and the relative address in the branch instruction. Remove unused code. * src/Disasm.h (map_PC_to_func, get_funcname_in_plt): New functions. * src/Elf.cc: Get function names for the .plt section. * src/Elf.h (get_funcname_in_plt, get_bfd_symbols): New functions. * src/Stabs.cc: Add pltSym to SymLst. Remove the conversion to uint32_t.
Diffstat (limited to 'gdb/stack.c')
0 files changed, 0 insertions, 0 deletions