[PATCH 0/2] Fix bug in aarch64-linux GDB when inferior changes SVE vector length

Thiago Jung Bauermann thiago.bauermann@linaro.org
Thu Jul 28 01:23:04 GMT 2022


Hello,

While working on gdbserver support for the case where the inferior changes
the SVE vector length, I noticed aproblem in the same scenario when doing
native debugging (details are in patch 1).

The testcase fails without the fix, and passes with it. Regression tested on
aarch64-linux native on Ubuntu 20.04.

Thanks,
Thiago

Thiago Jung Bauermann (2):
  gdb/aarch64: Fix thread's gdbarch when SVE vector length changes
  gdb/testsuite: Add test for AArch64 Scalable Vector Extension

 gdb/aarch64-linux-nat.c                | 11 +++-
 gdb/aarch64-tdep.c                     | 25 ++++++++
 gdb/aarch64-tdep.h                     |  2 +
 gdb/testsuite/gdb.arch/aarch64-sve.c   | 61 +++++++++++++++++++
 gdb/testsuite/gdb.arch/aarch64-sve.exp | 81 ++++++++++++++++++++++++++
 gdb/testsuite/lib/gdb.exp              |  4 ++
 gdb/testsuite/lib/mi-support.exp       |  4 --
 7 files changed, 181 insertions(+), 7 deletions(-)
 create mode 100644 gdb/testsuite/gdb.arch/aarch64-sve.c
 create mode 100644 gdb/testsuite/gdb.arch/aarch64-sve.exp



More information about the Gdb-patches mailing list