[0/1] Add Intel APX support

Message ID 20260725105335.2664219-1-christina.joos@intel.com
Headers
Series Add Intel APX support |

Message

Joos, Christina July 25, 2026, 10:53 a.m. UTC
  Hi all, 

this is my v2 for Intel APX support.

V1 can be found here:
https://sourceware.org/pipermail/gdb-patches/2026-June/227755.html

Changes since v1:
- Refactored the APX tests to simplify them
- Added actual linux corefile testing, as indicated here:
  https://sourceware.org/pipermail/gdb-patches/2026-July/228568.html
- Dropped the patch
  "gdb: add maintenance set/show gcore xml-target-description command"
  for the maintenance command
- Fixed some nits in the actual gdb code, also based on Keith's
  feedback, but no functional changes
- Fixed the "apx" naming -> "Intel APX"
- Fixed the documentation according to Eli's feedback
- Fixed copyright year
- Changed the co-author to my new name (Joos)

I am looking forward to your feedback!
Christina

H.J. Lu (1):
  gdb, gdbserver: Add Intel APX register support

 gdb/NEWS                                      |   4 +
 gdb/amd64-linux-tdep.c                        |   2 +
 gdb/amd64-tdep.c                              | 262 ++++++++++++++----
 gdb/amd64-tdep.h                              |   2 +
 gdb/arch/amd64.c                              |   4 +
 gdb/arch/x86-linux-tdesc-features.c           |   1 +
 gdb/doc/gdb.texinfo                           |   5 +
 gdb/features/Makefile                         |   1 +
 gdb/features/i386/64bit-apx.c                 |  29 ++
 gdb/features/i386/64bit-apx.xml               |  26 ++
 gdb/i386-tdep.c                               |  32 ++-
 gdb/i386-tdep.h                               |  26 ++
 gdb/i387-tdep.c                               | 105 ++++++-
 gdb/i387-tdep.h                               |   6 +
 gdb/nat/x86-xstate.c                          |   1 +
 gdb/target-debug.h                            |   1 +
 gdb/testsuite/gdb.arch/amd64-apx-core.c       |  88 ++++++
 gdb/testsuite/gdb.arch/amd64-apx-corefile.c   |  71 +++++
 gdb/testsuite/gdb.arch/amd64-apx-corefile.exp |  67 +++++
 gdb/testsuite/gdb.arch/amd64-apx.c            |  66 +++++
 gdb/testsuite/gdb.arch/amd64-apx.exp          |  77 +++++
 gdb/testsuite/lib/gdb.exp                     |  58 ++++
 gdbserver/i387-fp.cc                          |  43 +++
 gdbserver/linux-x86-low.cc                    |   4 +-
 gdbsupport/x86-xstate.h                       |  12 +-
 25 files changed, 931 insertions(+), 62 deletions(-)
 create mode 100644 gdb/features/i386/64bit-apx.c
 create mode 100644 gdb/features/i386/64bit-apx.xml
 create mode 100644 gdb/testsuite/gdb.arch/amd64-apx-core.c
 create mode 100644 gdb/testsuite/gdb.arch/amd64-apx-corefile.c
 create mode 100644 gdb/testsuite/gdb.arch/amd64-apx-corefile.exp
 create mode 100644 gdb/testsuite/gdb.arch/amd64-apx.c
 create mode 100644 gdb/testsuite/gdb.arch/amd64-apx.exp