diff options
| author | Tom de Vries <tdevries@suse.de> | 2025-10-14 18:09:36 +0200 |
|---|---|---|
| committer | Tom de Vries <tdevries@suse.de> | 2025-10-14 18:09:36 +0200 |
| commit | 94a0adaca0c84c645acc45e28662a4cbaeb75fbe (patch) | |
| tree | ce073ddd85ba0a63568c0b3c069852570fee2e64 /gdb/python/py-block.c | |
| parent | 9b38e80ce8835076e276267e2266774bfb410ee4 (diff) | |
| download | binutils-94a0adaca0c84c645acc45e28662a4cbaeb75fbe.zip binutils-94a0adaca0c84c645acc45e28662a4cbaeb75fbe.tar.gz binutils-94a0adaca0c84c645acc45e28662a4cbaeb75fbe.tar.bz2 | |
Fix gdb.ada/extended-access.exp on riscv64-linux
On riscv64-linux, I ran into:
...
(gdb) print the_array.all^M
Cannot access memory at address 0x0^M
(gdb) FAIL: gdb.ada/extended-access.exp: print the_array.all
...
The problem is that the_array.p_array is set by a dynamic relocation:
...
0000000000002010 <array_data>:
...
0000000000002028 <the_array>:
...
2028: R_RISCV_RELATIVE *ABS*+0x2010
...
which doesn't seem to get its value until we arrive in main.
Fix this by running to main before trying to print the_array.
Tested on riscv64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-block.c')
0 files changed, 0 insertions, 0 deletions
