gdb: set a breakpoint for a SIGBUS handler

前端 未结 4 1975
孤独总比滥情好
孤独总比滥情好 2021-02-08 20:14

I\'m trying to debug a simple stop-and-copy garbage collector (written in C) using GDB. The GC works by handling SIGBUS. I\'ve set a breakpoint at the top of my SIGBUS signal ha

4条回答
  •  眼角桃花
    2021-02-08 20:33

    How about putting a for( ;; ); after the printf(), running the program normally, and then connecting to the process with gdb after GC TIME prints out?

提交回复
热议问题