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 expression functions, but my file doesnt have fixed patterned functions.
In another way, is there a command by which I can set a breakpoint on a filename. Which will mean, whenever control gets inside this file, it should break ?
I personally think this should not be much difficult to implement in gdb, but just wondering if somebody has already done this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…