How do I set these break points in ~/.gdbinit?

后端 未结 1 1013
小鲜肉
小鲜肉 2021-01-03 09:51

Here is a list of break points to put in ~/.gdbinit that are really helpful in debugging memory problems:

fb -[NSException raise]
fb -[NSAssertionHandler han         


        
相关标签:
1条回答
  • 2021-01-03 10:53

    The title of this indicates that you are asking how to set these in ~/.gdbinit but the first line of your detailed question indicates that you have the above in ~/.gdbinit?

    What, exactly, is the problem, then?

    I use something pretty similar and it works fine, but since much of this is fairly intrusive behavioral changes, I put it in a separate file (~/.gdbmem) and then source it as needed.

    My ~/.gdbinit is limited almost entirely to macro definitions that don't otherwise change the debugging session. Thus, the default behavior is minimal impact on debugging and I can source one of 2 additional files full of gdb config goop to automatically apply some relatively intrusive additional configuration to the environment.

    0 讨论(0)
提交回复
热议问题