On Sun, Jun 13, 2021 at 1:26 PM Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
and then in gdb you just do b main run
Btw, this extra stage is unnecessary, but if I just do that "catch syscall group:process" before the process has even started, gdb gets confused at the start. You could skip this and just do "catch syscall exit_group" and then "run". I used that "group:process" just to catch both the legacy "exit" and the new "exit_group", but then it catches fork/execve too, and I think that's what confuses gdb when it happens as you start the process. Just to clarify why I did that odd thing. Linus