public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] More build-id checking when opening core files
@ 2024-05-17 14:18 Andrew Burgess
  2024-05-17 14:18 ` [PATCH 1/4] gdb/corefile: remove unavailable target sections Andrew Burgess
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Andrew Burgess @ 2024-05-17 14:18 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

This series start with patch #3.  I wanted to improve the build-id
checking that GDB does when loading shared libraries as part of
opening a core file, I found the existing build-id checks to be rather
limited.

To write #3 I ended up looking at the mapped file handling in
corelow.c, which lead to patches #1 and #2.

And patch #4 appeared when I observed that we do similar, but slightly
different things in 3 places in GDB, and these could all be merged.

---

Andrew Burgess (4):
  gdb/corefile: remove unavailable target sections
  gdb/corefile: improve file backed mapping handling
  gdb: improve shared library build-id check for core-files
  gdb: unify build-id to objfile lookup code

 gdb/build-id.c                                |  42 +-
 gdb/build-id.h                                |  21 +-
 gdb/corelow.c                                 | 379 +++++++++++++-----
 gdb/solib-aix.c                               |   6 +
 gdb/solib-darwin.c                            |   6 +
 gdb/solib-dsbt.c                              |   6 +
 gdb/solib-frv.c                               |   6 +
 gdb/solib-svr4.c                              |  10 +
 gdb/solib-target.c                            |   6 +
 gdb/solib.c                                   | 369 ++++++++++++++---
 gdb/solib.h                                   |  39 +-
 gdb/solist.h                                  |  22 +
 gdb/testsuite/gdb.base/corefile.exp           |  39 ++
 gdb/testsuite/gdb.base/solib-search.exp       |   6 +-
 .../gdb.debuginfod/corefile-mapped-file-1.c   |  24 ++
 .../gdb.debuginfod/corefile-mapped-file-2.c   |  22 +
 .../gdb.debuginfod/corefile-mapped-file-3.c   |  45 +++
 .../gdb.debuginfod/corefile-mapped-file.exp   | 335 ++++++++++++++++
 .../gdb.debuginfod/solib-with-soname-1.c      |  39 ++
 .../gdb.debuginfod/solib-with-soname-2.c      |  41 ++
 .../gdb.debuginfod/solib-with-soname.exp      | 268 +++++++++++++
 gdb/testsuite/lib/gdb.exp                     |  20 +-
 22 files changed, 1587 insertions(+), 164 deletions(-)
 create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file-1.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file-2.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file.exp
 create mode 100644 gdb/testsuite/gdb.debuginfod/solib-with-soname-1.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/solib-with-soname-2.c
 create mode 100644 gdb/testsuite/gdb.debuginfod/solib-with-soname.exp


base-commit: ad666becfe075ca7c831ebbf4b44526994395e97
-- 
2.25.4


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

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

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-17 14:18 [PATCH 0/4] More build-id checking when opening core files Andrew Burgess
2024-05-17 14:18 ` [PATCH 1/4] gdb/corefile: remove unavailable target sections Andrew Burgess
2024-05-17 14:18 ` [PATCH 2/4] gdb/corefile: improve file backed mapping handling Andrew Burgess
2024-05-17 14:18 ` [PATCH 3/4] gdb: improve shared library build-id check for core-files Andrew Burgess
2024-05-17 14:19 ` [PATCH 4/4] gdb: unify build-id to objfile lookup code Andrew Burgess
2024-05-20 13:08 ` [PATCHv2 0/4] More build-id checking when opening core files Andrew Burgess
2024-05-20 13:08   ` [PATCHv2 1/4] gdb/corefile: remove unavailable target sections Andrew Burgess
2024-05-20 13:08   ` [PATCHv2 2/4] gdb/corefile: improve file backed mapping handling Andrew Burgess
2024-05-20 13:08   ` [PATCHv2 3/4] gdb: improve shared library build-id check for core-files Andrew Burgess
2024-05-21 19:00     ` Andrew Burgess
2024-05-20 13:08   ` [PATCHv2 4/4] gdb: unify build-id to objfile lookup code Andrew Burgess
2024-06-10 21:49   ` [PATCHv3 0/4] More build-id checking when opening core files Andrew Burgess
2024-06-10 21:49     ` [PATCHv3 1/4] gdb/corefile: remove unavailable target sections Andrew Burgess
2024-06-10 21:49     ` [PATCHv3 2/4] gdb/corefile: improve file backed mapping handling Andrew Burgess
2024-06-10 21:49     ` [PATCHv3 3/4] gdb: improve shared library build-id check for core-files Andrew Burgess
2024-06-10 21:49     ` [PATCHv3 4/4] gdb: unify build-id to objfile lookup code 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).