Print multiple variables with one command in GDB

后端 未结 4 1409
南笙
南笙 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 14:42

    You can simply do this

    print {var1,var2,var3,var4}
    

    This will do the job.

提交回复
热议问题