public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] More detailed filenames for in-memory BFD objects
@ 2022-10-05 19:33 Andrew Burgess
  2022-10-05 19:33 ` [PATCH 1/2] gdb: remove filename arg from gdb_bfd_open_from_target_memory Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Burgess @ 2022-10-05 19:33 UTC (permalink / raw)
  To: gdb-patches

We currently generate a filename for every in-memory BFD object that
GDB created (as part of the JIT interface).  The generated name is
"<in-memory>" for every symfile, which can make it hard to tell
multiple such files apart.

This series changes the generated name to "<in-memory@ADDRESS>", wher
ADDRESS is, obviously, the actual address of the symfile in memory.

I believe that this filename is only ever exposed in the output of
maintenance commands, so I haven't mentioned this change in the NEWS
file.  Maybe I should though?

---

Andrew Burgess (2):
  gdb: remove filename arg from gdb_bfd_open_from_target_memory
  gdb: include the base address in in-memory bfd filenames

 gdb/gdb_bfd.c                           |  59 ++++++---
 gdb/gdb_bfd.h                           |   7 +-
 gdb/testsuite/gdb.base/jit-bfd-name.exp | 155 ++++++++++++++++++++++++
 gdb/testsuite/lib/gdb.exp               |  22 ++++
 gdb/testsuite/lib/jit-elf-helpers.exp   |  12 +-
 5 files changed, 234 insertions(+), 21 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/jit-bfd-name.exp

-- 
2.25.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-07 19:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05 19:33 [PATCH 0/2] More detailed filenames for in-memory BFD objects Andrew Burgess
2022-10-05 19:33 ` [PATCH 1/2] gdb: remove filename arg from gdb_bfd_open_from_target_memory Andrew Burgess
2022-10-05 19:33 ` [PATCH 2/2] gdb: include the base address in in-memory bfd filenames Andrew Burgess
2022-10-07 19:04 ` [PATCH 0/2] More detailed filenames for in-memory BFD objects Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).