开发者

Can i skip a whole file (malloc.c etc) using GDB?

开发者 https://www.devze.com 2023-02-21 07:18 出处:网络
Using GDB we can set breakpoints and step into the test program. Some开发者_Go百科times on continuing step by step we step into some library file like \"malloc.c\", which we might not be really intere

Using GDB we can set breakpoints and step into the test program. Some开发者_Go百科times on continuing step by step we step into some library file like "malloc.c", which we might not be really interested in looking into the whole file.

Can it be possible to skip the whole file? Like is there are command like: skip malloc.c like that? If not, how to achieve it?

Thanks in advance


Rather than step, why not use next to go to the next line without stepping into the function call?


There are no such command, but you can use finish, which jumps to the end of a function. It will speed up things a little.


Since GDB 7.4 you can use skip file /path/to/malloc.c.

0

精彩评论

暂无评论...
验证码 换一张
取 消