Set breakpoint on every line in GDB

后端 未结 3 1236
一个人的身影
一个人的身影 2021-02-15 06:04

Is there a way to set a breakpoint at every line in the code with GDB? Obviously I don\'t want to hit b *addr for every single line, so I\'m wondering if there\'s a

3条回答
  •  再見小時候
    2021-02-15 06:37

    Can't you just place the breakpoint on the first line of execution and then step through each line ? This depends on what are you trying to achieve by setting breakpoints on each line. If you want to evaluate expressions, you can do it by following my logic (step through each line).

提交回复
热议问题