diff options
author | Dominik 'Disconnect3d' Czarnota <dominik.b.czarnota@gmail.com> | 2025-01-20 23:28:58 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2025-01-30 13:01:22 +0300 |
commit | 8b647bd352505234cab2acd2422aba183a1aa1fd (patch) | |
tree | 8e5007b1b7245df46f68da6c192c5d703a6033c6 /scripts/xml-preprocess.py | |
parent | 6003402aa91053c6884f1cf324692dcc035df96c (diff) | |
download | qemu-8b647bd352505234cab2acd2422aba183a1aa1fd.zip qemu-8b647bd352505234cab2acd2422aba183a1aa1fd.tar.gz qemu-8b647bd352505234cab2acd2422aba183a1aa1fd.tar.bz2 |
gdbstub/user-target: fix gdbserver int format (%d -> %x)
This commit fixes an incorrect format string for formatting integers
provided to GDB when debugging a target run in QEMU user mode.
The correct format is hexadecimal for both success and errno values,
some of which can be seen here [0].
[0] https://github.com/bminor/binutils-gdb/blob/e65a355022d0dc6b5707310876a72b5693ec0aa5/gdbserver/hostio.cc#L196-L213
Signed-off-by: Dominik 'Disconnect3d' Czarnota <dominik.b.czarnota@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Fixes: e282010b2e1e ("gdbstub: Add support for info proc mappings")
Cc: qemu-stable@nongnu.org
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/xml-preprocess.py')
0 files changed, 0 insertions, 0 deletions