Bug 31506 - [gdb/corefiles, aarch64] FAIL: gdb.base/corefile2.exp: renamed binfile: print/x buf_rw[0]@4
Summary: [gdb/corefiles, aarch64] FAIL: gdb.base/corefile2.exp: renamed binfile: print...
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: corefiles (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-18 10:27 UTC by Tom de Vries
Modified: 2024-03-26 07:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2024-03-18 10:27:56 UTC
On aarch64-linux (debian 12), I run into:
...
(gdb) file /home/linux/gdb/build/gdb/testsuite/outputs/gdb.base/corefile2/corefile2^M
Reading symbols from /home/linux/gdb/build/gdb/testsuite/outputs/gdb.base/corefile2/corefile2...^M
(gdb) print/x buf_rw[0]@4^M
Cannot access memory at address 0x60090^M
(gdb) FAIL: gdb.base/corefile2.exp: renamed binfile: print/x buf_rw[0]@4
...

At first glance, this looks like a relocation issue:
...
(gdb) p &buf_rw[0]
$1 = 0x60090 <buf_rw> ""
(gdb) start
  ...
(gdb) p &buf_rw[0]
$2 = 0xaaaaaab00090 <buf_rw> ""
....
Comment 1 Tom de Vries 2024-03-26 07:22:04 UTC
Passes with target board unix/-fno-PIE/-no-pie.