问题
I have got 3 Arrays under the data label (ArrayA, ArrayB, ArrayC)
, each having 16 bytes.
I've already written the program that goes through it row by row and adds each row of A
with each row of B and then saves the result to the same row of array C
.
I want to add a breakpoint just before the program stops executing and then print the memory from [=ArrayC]
up to [=ArrayC] + 15
, byte by byte, once in hex and once in decimal.
How is that possible?
回答1:
x/16xb &ArrayC for hexadecimal and x/16ub &ArrayC for decimal
来源:https://stackoverflow.com/questions/47072610/print-bytes-of-data-label-artificial-array-as-hex-and-dec-in-arm-gdb