public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Python API to find missing objfiles
@ 2024-09-10 16:56 Andrew Burgess
  2024-09-10 16:56 ` [PATCH 1/4] gdb: use mapped file information to improve debuginfod text Andrew Burgess
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Andrew Burgess @ 2024-09-10 16:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

This series provides a Python API which can be used to find missing
objfiles when opening a core file.  This is very similar in spirit to
the already existing code that provides a Python API for finding
missing debug information.

The first patch in this series cleans up the message that debuginfod
produces.  This is only relevant because the cleanup changes which
filenames are passed around, these same filenames are then passed into
the new Python API.

Patch #2 is a refactoring.

Patch #3 adds the new extension language API on the GDB core side.

Patch #4 adds the Python side of the same API.

For reference, see these commits for when the missing debug files
Python API was added:

  * 8f6c452b5a4 gdb: implement missing debug handler hook for Python
  * 661d98a3331 gdb: add an extension language hook for missing debug info

Thanks,
Andrew

---

Andrew Burgess (4):
  gdb: use mapped file information to improve debuginfod text
  gdb: rename ext_lang_missing_debuginfo_result
  gdb: add extension hook ext_lang_find_objfile_from_buildid
  gdb/python: implement Python find_exec_by_build_id hook

 gdb/NEWS                                      |  24 +
 gdb/build-id.c                                |  88 ++-
 gdb/build-id.h                                |   3 +-
 gdb/corelow.c                                 |  63 +-
 gdb/data-directory/Makefile.in                |   4 +-
 gdb/debuginfod-support.c                      |   4 +-
 gdb/doc/gdb.texinfo                           |   1 +
 gdb/doc/python.texi                           | 194 ++++++-
 gdb/extension-priv.h                          |  15 +-
 gdb/extension.c                               |  26 +-
 gdb/extension.h                               |  30 +-
 gdb/python/lib/gdb/__init__.py                | 110 +++-
 .../{missing_debug.py => missing_files.py}    | 135 +++--
 gdb/python/lib/gdb/missing_debug.py           | 161 +-----
 gdb/python/lib/gdb/missing_files.py           | 204 +++++++
 gdb/python/lib/gdb/missing_objfile.py         |  67 +++
 gdb/python/py-progspace.c                     |  26 +-
 gdb/python/python.c                           | 120 +++-
 gdb/solib.c                                   |   3 +-
 gdb/symfile-debug.c                           |   2 +-
 .../gdb.debuginfod/corefile-mapped-file.exp   |   2 +-
 .../gdb.debuginfod/solib-with-soname.exp      |   2 +-
 .../gdb.python/py-missing-objfile-lib.c       |  35 ++
 gdb/testsuite/gdb.python/py-missing-objfile.c |  49 ++
 .../gdb.python/py-missing-objfile.exp         | 544 ++++++++++++++++++
 .../gdb.python/py-missing-objfile.py          | 158 +++++
 26 files changed, 1787 insertions(+), 283 deletions(-)
 rename gdb/python/lib/gdb/command/{missing_debug.py => missing_files.py} (54%)
 create mode 100644 gdb/python/lib/gdb/missing_files.py
 create mode 100644 gdb/python/lib/gdb/missing_objfile.py
 create mode 100644 gdb/testsuite/gdb.python/py-missing-objfile-lib.c
 create mode 100644 gdb/testsuite/gdb.python/py-missing-objfile.c
 create mode 100644 gdb/testsuite/gdb.python/py-missing-objfile.exp
 create mode 100644 gdb/testsuite/gdb.python/py-missing-objfile.py


base-commit: dbddec2a8e0265b77fe331d9c173a4e99d1fccab
-- 
2.25.4


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

end of thread, other threads:[~2024-11-10 10:21 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-10 16:56 [PATCH 0/4] Python API to find missing objfiles Andrew Burgess
2024-09-10 16:56 ` [PATCH 1/4] gdb: use mapped file information to improve debuginfod text Andrew Burgess
2024-10-01 17:24   ` Tom Tromey
2024-09-10 16:56 ` [PATCH 2/4] gdb: rename ext_lang_missing_debuginfo_result Andrew Burgess
2024-10-01 17:25   ` Tom Tromey
2024-09-10 16:56 ` [PATCH 3/4] gdb: add extension hook ext_lang_find_objfile_from_buildid Andrew Burgess
2024-10-01 17:35   ` Tom Tromey
2024-09-10 16:56 ` [PATCH 4/4] gdb/python: implement Python find_exec_by_build_id hook Andrew Burgess
2024-09-10 18:13   ` Eli Zaretskii
2024-09-22 17:11     ` Andrew Burgess
2024-09-22 17:58       ` Eli Zaretskii
2024-10-01 18:29   ` Tom Tromey
2024-10-11 23:07     ` Andrew Burgess
2024-10-27  9:10 ` [PATCHv2 0/4] Python API to find missing objfiles Andrew Burgess
2024-10-27  9:10   ` [PATCHv2 1/4] gdb: use mapped file information to improve debuginfod text Andrew Burgess
2024-10-27  9:10   ` [PATCHv2 2/4] gdb: rename ext_lang_missing_debuginfo_result Andrew Burgess
2024-10-27  9:10   ` [PATCHv2 3/4] gdb: add extension hook ext_lang_find_objfile_from_buildid Andrew Burgess
2024-10-27  9:10   ` [PATCHv2 4/4] gdb/python: implement Python find_exec_by_build_id hook Andrew Burgess
2024-11-05 13:15   ` [PATCHv3 0/4] Python API to find missing objfiles Andrew Burgess
2024-11-05 13:15     ` [PATCHv3 1/4] gdb: use mapped file information to improve debuginfod text Andrew Burgess
2024-11-05 13:15     ` [PATCHv3 2/4] gdb: rename ext_lang_missing_debuginfo_result Andrew Burgess
2024-11-05 13:15     ` [PATCHv3 3/4] gdb: add extension hook ext_lang_find_objfile_from_buildid Andrew Burgess
2024-11-05 13:15     ` [PATCHv3 4/4] gdb/python: implement Python find_exec_by_build_id hook Andrew Burgess
2024-11-10 10:21     ` [PATCHv3 0/4] Python API to find missing objfiles Andrew Burgess

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).