Print multiple variables with one command in GDB

后端 未结 4 1401
南笙
南笙 2020-12-14 13:45

I want to execute the very simple command

print var1, var2, var3, var4 

in gdb to examine the values of the vars from time to time.

4条回答
  •  轮回少年
    2020-12-14 14:33

    There may be a simpler solution, but you might be able to put together something using GDB macros: http://www.ibm.com/developerworks/aix/library/au-gdb.html

提交回复
热议问题