[v4,0/2] Querying registers of already-exited processes

Message ID cover.1702909611.git.tankut.baris.aktemur@intel.com
Headers
Series Querying registers of already-exited processes |

Message

Aktemur, Tankut Baris Dec. 18, 2023, 2:40 p.m. UTC
  Hello,

This series can be considered a continuation of

  commit 4778a5f87d253399083565b4919816f541ebe414
  Author: Tom de Vries <tdevries@suse.de>
  Date:   Tue Apr 21 15:45:57 2020 +0200

    [gdb] Fix hang after ext sigkill

and

  commit 47f1aceffa02be4726b854082d7587eb259136e0
  Author: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
  Date:   Thu May 14 13:59:54 2020 +0200

    gdb/infrun: handle already-exited threads when attempting to stop

The starting point was PR gdb/26877:

  https://sourceware.org/bugzilla/show_bug.cgi?id=26877

Revision v1 of the series is available at

  https://sourceware.org/pipermail/gdb-patches/2020-November/173255.html

Revision v2 of the series is available at

  https://sourceware.org/pipermail/gdb-patches/2022-February/185784.html

Revision v3 of the series is available at

  https://sourceware.org/pipermail/gdb-patches/2022-March/186919.html

This revision (v4) rebases on the current master.

Regards
Baris

Tankut Baris Aktemur (2):
  gdb/regcache: return REG_UNAVAILABLE in raw_read if
    NOT_AVAILABLE_ERROR is seen
  gdb: raise and handle NOT_AVAILABLE_ERROR when accessing frame PC

 gdb/amd64-linux-nat.c                         |  5 +-
 gdb/regcache.c                                | 12 ++-
 gdb/remote.c                                  | 15 ++--
 gdb/stack.c                                   | 33 ++++++-
 gdb/testsuite/gdb.threads/killed-outside.exp  |  8 +-
 .../gdb.tui/multi-exit-remove-inferior.c      | 21 +++++
 .../gdb.tui/multi-exit-remove-inferior.exp    | 86 +++++++++++++++++++
 7 files changed, 167 insertions(+), 13 deletions(-)
 create mode 100644 gdb/testsuite/gdb.tui/multi-exit-remove-inferior.c
 create mode 100644 gdb/testsuite/gdb.tui/multi-exit-remove-inferior.exp