diff options
author | David Faust <david.faust@oracle.com> | 2023-07-21 11:41:43 -0700 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2023-07-21 11:49:24 -0700 |
commit | e8fc65713d6e050348d443f9be7b61e6f54c6371 (patch) | |
tree | 7dbac66d0e23fd659ba5c45ab2b948b8e00d4784 /gdbsupport/gdb-hashtab.h | |
parent | 8a35f6b30a3eac659240f8ea217d351955d3fb3b (diff) | |
download | gdb-e8fc65713d6e050348d443f9be7b61e6f54c6371.zip gdb-e8fc65713d6e050348d443f9be7b61e6f54c6371.tar.gz gdb-e8fc65713d6e050348d443f9be7b61e6f54c6371.tar.bz2 |
bpf: disasemble offsets of value 0 as "+0"
This tiny patch makes the BPF disassembler to emit, e.g.
ldxdw %r1, [%r0+0]
instead of
ldxdw %r1, [%r00]
when the offset is 0, to avoid confusion.
opcodes/
* bpf-dis.c (print_insn_bpf): Print offsets with value 0 as "+0".
gas/
* testsuite/gas/bpf/mem.s: Add tests with offset 0.
* testsuite/gas/bpf/mem-pseudoc.s: Likewise.
* testsuite/gas/bpf/mem.d: Update accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
* testsuite/gas/bpf/mem-pseudoc.d: Likewise.
* testsuite/gas/bpf/mem-be-pseudoc.d: Likewise.
Diffstat (limited to 'gdbsupport/gdb-hashtab.h')
0 files changed, 0 insertions, 0 deletions