diff options
author | Tom de Vries <tdevries@suse.de> | 2024-01-04 13:42:45 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-01-04 13:42:45 +0100 |
commit | 2bcfdb758bb18e29cf6c0486c448bf78dbbc0c8a (patch) | |
tree | f177244238e9c7af26b0c14e729b4f9317d6b829 /gdb/testsuite/gdb.dwarf2 | |
parent | fd67aa1129fd006ad49ed5ecb2b063705211553a (diff) | |
download | gdb-2bcfdb758bb18e29cf6c0486c448bf78dbbc0c8a.zip gdb-2bcfdb758bb18e29cf6c0486c448bf78dbbc0c8a.tar.gz gdb-2bcfdb758bb18e29cf6c0486c448bf78dbbc0c8a.tar.bz2 |
[gdb/testsuite] Handle PAC marker
On aarch64-linux, I run into:
...
FAIL: gdb.base/annota1.exp: backtrace from shlibrary (timeout)
...
due to the PAC marker showing up:
...
^Z^Zframe-address^M
0x000000000041025c [PAC]^M
^Z^Zframe-address-end^M
...
In the docs the marker is documented as follows:
...
When GDB is debugging the AArch64 architecture, and the program is using the
v8.3-A feature Pointer Authentication (PAC), then whenever the link register
$lr is pointing to an PAC function its value will be masked. When GDB prints
a backtrace, any addresses that required unmasking will be postfixed with the
marker [PAC]. When using the MI, this is printed as part of the addr_flags
field.
...
Update the test-case to allow the PAC marker.
Likewise in a few other test-cases.
While we're at it, rewrite the affected pattern pat_begin in annota1.exp into
a more readable form. Likewise for the corresponding pat_end.
Tested on aarch64-linux.
Approved-By: Luis Machado <luis.machado@arm.com>
PR testsuite/31202
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31202
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/entry-value-typedef.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/entry-value-typedef.exp b/gdb/testsuite/gdb.dwarf2/entry-value-typedef.exp index b56c9ce..3d25e2a 100644 --- a/gdb/testsuite/gdb.dwarf2/entry-value-typedef.exp +++ b/gdb/testsuite/gdb.dwarf2/entry-value-typedef.exp @@ -42,4 +42,4 @@ gdb_test "continue" "Catchpoint $::decimal \\(exception thrown\\).*" # Without the corresponding fix, GDB would hit an internal error before # printing the frame for main. -gdb_test "backtrace" " $::hex in func \\(t=t@entry=@$::hex: 1234\\).* $::hex in main .*" +gdb_test "backtrace" " $::hex (\\\[PAC\\\] )?in func \\(t=t@entry=@$::hex: 1234\\).* $::hex in main .*" |