[0/3] Add displaced stepping support for AMD GPUs

Message ID 20250114191818.2393132-1-simon.marchi@polymtl.ca
Headers
Series Add displaced stepping support for AMD GPUs |

Message

Simon Marchi Jan. 14, 2025, 7:16 p.m. UTC
  From: Simon Marchi <simon.marchi@polymtl.ca>

The AMD GPU port is still very barebone (i.e. not useful as-is), what's
blocking is mostly waiting for the DWARF extensions proposed by AMD to
be standardized.  But displaced stepping is a small piece that can be
upstreamed and tested without needing DWARF.

Simon Marchi (3):
  gdb/amd-dbgapi: use gdb::unordered_map
  gdb: add target displaced stepping support
  gdb/amd-dbgapi: add displaced stepping support

 gdb/amd-dbgapi-target.c                       | 143 +++++++++++++++++-
 gdb/displaced-stepping.c                      |  43 ++++++
 gdb/displaced-stepping.h                      |  67 ++++++++
 gdb/infrun.c                                  |  42 ++---
 gdb/target-debug.h                            |  18 +++
 gdb/target-delegates-gen.c                    | 108 +++++++++++++
 gdb/target.h                                  |  19 +++
 gdb/testsuite/gdb.rocm/displaced-stepping.exp |  54 +++++++
 8 files changed, 465 insertions(+), 29 deletions(-)
 create mode 100644 gdb/testsuite/gdb.rocm/displaced-stepping.exp


base-commit: d3685ec080cc5bfb9646cdc1f5ddda0c3da92b76