I want to get backtrace of the stack in process A by process B
I know I can use gdb --pid pid_of_A
, then use info stack
to get backtrace of the stack in process A.
But, I want to implement it by code, not use gdb. I read gdb source code to understand how gdb do it, but gdb is to complex to understand.
Can you help to do it ?