Browse Source
1. Since 32bit-pkeys.xml and 64bit-pkeys.xml are identical, consolidate them into a single keys.xml. 2. Enable PKU for x32 to fix: $ gdbserver :123456 x32-program ... .../gdbserver/regcache.cc:255: A problem internal to GDBserver has been detected . Unknown register pkru requested on Tiger Lake.binutils-2_39-branch
8 changed files with 12 additions and 38 deletions
@ -1,14 +0,0 @@ |
|||
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
|
|||
Original: 64bit-pkeys.xml */ |
|||
|
|||
#include "gdbsupport/tdesc.h" |
|||
|
|||
static int |
|||
create_feature_i386_64bit_pkeys (struct target_desc *result, long regnum) |
|||
{ |
|||
struct tdesc_feature *feature; |
|||
|
|||
feature = tdesc_create_feature (result, "org.gnu.gdb.i386.pkeys"); |
|||
tdesc_create_reg (feature, "pkru", regnum++, 1, NULL, 32, "uint32"); |
|||
return regnum; |
|||
} |
|||
@ -1,13 +0,0 @@ |
|||
<?xml version="1.0"?> |
|||
<!-- Copyright (C) 2016-2022 Free Software Foundation, Inc. |
|||
|
|||
Copying and distribution of this file, with or without modification, |
|||
are permitted in any medium without royalty provided the copyright |
|||
notice and this notice are preserved. --> |
|||
|
|||
<!DOCTYPE feature SYSTEM "gdb-target.dtd"> |
|||
<feature name="org.gnu.gdb.i386.pkeys"> |
|||
|
|||
<reg name="pkru" bitsize="32" type="uint32"/> |
|||
|
|||
</feature> |
|||
@ -1,10 +1,10 @@ |
|||
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
|
|||
Original: 32bit-pkeys.xml */ |
|||
Original: pkeys.xml */ |
|||
|
|||
#include "gdbsupport/tdesc.h" |
|||
|
|||
static int |
|||
create_feature_i386_32bit_pkeys (struct target_desc *result, long regnum) |
|||
create_feature_i386_pkeys (struct target_desc *result, long regnum) |
|||
{ |
|||
struct tdesc_feature *feature; |
|||
|
|||
Loading…
Reference in new issue