aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/frame-selection.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-11-24 09:21:28 +0100
committerTom de Vries <tdevries@suse.de>2024-11-24 09:21:28 +0100
commit620651665318e9ac655c7fa189ee297e2bc02e97 (patch)
treede5edca1e9bc62ab94b74925c52996b5e66b5fbf /gdb/testsuite/gdb.base/frame-selection.c
parent3198eb6627e2f48295ccbbdc5bd73d76412882b4 (diff)
downloadgdb-620651665318e9ac655c7fa189ee297e2bc02e97.zip
gdb-620651665318e9ac655c7fa189ee297e2bc02e97.tar.gz
gdb-620651665318e9ac655c7fa189ee297e2bc02e97.tar.bz2
opcodes: fix Werror=format build breaker in opcodes/riscv-dis.c
I build gdb on arm-linux and ran into: ... CC riscv-dis.lo opcodes/riscv-dis.c: In function ‘print_insn_args’: opcodes/riscv-dis.c:743:29: error: format ‘%lu’ expects argument of type \ ‘long unsigned int’, but argument 4 has type ‘insn_t’ \ {aka ‘long long unsigned int’} [-Werror=format=] 743 | "%lu", EXTRACT_ZCMT_INDEX (l)); | ~~^ | | | long unsigned int | %llu ... Fix this by printing the insn_t value, which is a uint64_t, using PRIu64. Tested by finishing the build.
Diffstat (limited to 'gdb/testsuite/gdb.base/frame-selection.c')
0 files changed, 0 insertions, 0 deletions