gdb, set breakpoint on all functions in a file

后端 未结 2 1950
北海茫月
北海茫月 2020-11-29 05:18

Is there a single command in gdb which can set breakpoints on all the functions in a given file ? I know about rbreak regex which sets breakpoints in matching regular expres

2条回答
  •  不知归路
    2020-11-29 05:48

    (gdb) rbreak file:.
    

    from http://sourceware.org/gdb/download/onlinedocs/gdb/Set-Breaks.html#Set-Breaks

提交回复
热议问题