[PATCHv2 0/4] More build-id checking when opening core files

Andrew Burgess aburgess@redhat.com
Mon May 20 13:08:23 GMT 2024


In v2:

  - Failures were reported in the new tests from Linaro CI testing.
    Nothing serious; Linaro was seeing some additional output that the
    regexp I'd written were not accounting for.  I've revised the new
    tests to try and not be too strict, hopefully this should address
    the issues that were reported.

  - I've cleaned up some build vs host mistakes I think I made in some
    remote_exec calls.

  - And I've run the tests agsint 'make check-all-boards' and resolved
    some issues that cropped up.

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   | 380 ++++++++++++++++++
 .../gdb.debuginfod/solib-with-soname-1.c      |  39 ++
 .../gdb.debuginfod/solib-with-soname-2.c      |  41 ++
 .../gdb.debuginfod/solib-with-soname.exp      | 290 +++++++++++++
 gdb/testsuite/lib/gdb.exp                     |  20 +-
 22 files changed, 1654 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



More information about the Gdb-patches mailing list