debugging on bsd using gdb or similar tootls
- by agent.smith
I have started using freebsd lately and realized gdb does not support remote debugging on it.
Whenever, I try to do remote debugging using gdbserver, I run into SIGSEGV crashes and error message says can’t find definition of “r_debug_state”.
Has anyone ever experienced this and solved it?
Statically compiled single threaded programs can be compiled using gdbserver. However, other than that it is mostly looking difficult to use.
Let me know if anyone knows any other tools to do remote application debugging on bsd or how to fix the issue.
(I am on x64 freebsd 9)
Thanks