Home > Back-end >  How to examine bytes in gdb without printing labels?
How to examine bytes in gdb without printing labels?

Time:10-03

GDB is trying to be helpful by labeling what I believe are global variables, but in this case each global is more than 0x10 bytes and so the second part of the variable is printed on the next line, but with an offset added to its label, which throws off the alignment of the whole printout (generated by executing x/50wx 0x604130): Unwanted offset in gdb labels Is there a command to disable these labels while examining bytes?

Edit: to be more specific, I would like to printout exactly what is shown in the screenshot, just without the <n1> / <n1 16> labels that are throwing off the alignment of the columns

CodePudding user response:

Is there a command to disable these labels while examining bytes?

I don't believe there is.

One might expect that set print symbol off would do it, but it doesn't.

The closest I can suggest is this answer.

  • Related