Print bytes of data label (artificial) array as hex and dec in ARM gdb

情到浓时终转凉″ 提交于 2020-01-30 12:11:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!