aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-29 10:50:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-02 15:27:53 +0200
commit41823f29a811bb250ae274652281a6294fdc2530 (patch)
treebb991ba76512ee196c09b435cdd8ee9215a40220 /bfd
parentc0c468d562649df0f695737262b6230b7a56a4bb (diff)
downloadgdb-41823f29a811bb250ae274652281a6294fdc2530.zip
gdb-41823f29a811bb250ae274652281a6294fdc2530.tar.gz
gdb-41823f29a811bb250ae274652281a6294fdc2530.tar.bz2
gdb: Prefer RISC-V register name "s0" over "fp"
The "fp" register name is an alias for "s0" which is an alias for "x8". The "fp" name is only understood by very recent Binutils and thus not used by GCC. GCC does not emit a frame pointer with common optimization options such as -Og or -O2. It is still possible to use the "fp" register name, e.g. (gdb) p/x $fp $1 = 0x800367c8 works. However, in the register dump you see now: (gdb) info registers ... t2 0xffffffffffffffff 18446744073709551615 s0 0x800367c8 0x800367c8 s1 0x80033280 2147693184 ... gdb/ * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions