debugging on bsd using gdb or similar tootls

Posted by agent.smith on Stack Overflow See other posts from Stack Overflow or by agent.smith
Published on 2012-12-03T17:45:07Z Indexed on 2012/12/09 17:04 UTC
Read the original article Hit count: 254

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about debugging

Related posts about gdb