[0/3] Improve vmcore loading

Message ID cover.1685956034.git.aburgess@redhat.com
Headers
Series Improve vmcore loading |

Message

Andrew Burgess June 5, 2023, 9:11 a.m. UTC
  This patch started as a proposal to upstream a test from the Fedora
GDB tree (patch #2), however, as I started looking into the test a
little more I realised that there was scope for further improvements
to GDB (patch #3).  Patch #1 is a small cleanup/refactor.

This patch is all about loading vmcore files -- that is core files
generated by the Linux kernel.  See the commit messages on patches #2
and #3 for more details.

Thanks,
Andrew

---

Andrew Burgess (3):
  gdb: split inferior and thread setup when opening a core file
  gdb/testsuite: add test for core file with a 0 pid
  gdb: handle core files with .reg/0 section names

 gdb/corelow.c                                 | 212 +++++++++++++++---
 gdb/testsuite/gdb.arch/core-file-pid0.exp     |  73 ++++++
 .../gdb.arch/core-file-pid0.x86-64.core.bz2   | Bin 0 -> 750 bytes
 3 files changed, 252 insertions(+), 33 deletions(-)
 create mode 100644 gdb/testsuite/gdb.arch/core-file-pid0.exp
 create mode 100644 gdb/testsuite/gdb.arch/core-file-pid0.x86-64.core.bz2


base-commit: e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d
  

Comments

Andrew Burgess July 3, 2023, 5:03 p.m. UTC | #1
Andrew Burgess <aburgess@redhat.com> writes:

> This patch started as a proposal to upstream a test from the Fedora
> GDB tree (patch #2), however, as I started looking into the test a
> little more I realised that there was scope for further improvements
> to GDB (patch #3).  Patch #1 is a small cleanup/refactor.
>
> This patch is all about loading vmcore files -- that is core files
> generated by the Linux kernel.  See the commit messages on patches #2
> and #3 for more details.

I've gone ahead and pushed this series.

Thanks,
Andrew