Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Debug user space application with MMU

I am trying to use the gdbserver as described here:

http://nioswiki.com/linux/debug_user_space

At some point, this was working, but sometimes it wouldn't work and now I haven't had it working for a while. The application and gdb dies on a crash and doesn't let me debug. This isn't just this particular crash, I've had this happen with almost every crash while developing.

On the server:

--- Quote Start ---

root:/> gdbserver localhost:9999 myprogram

Process myprogram created; pid = 50

Listening on port 9999

Remote debugging from host 192.168.100.28

<program output...>

Child terminated with signal = b

Child terminated with signal = 0xb (SIGSEGV)

GDBserver exiting

root:/>

--- Quote End ---

On the client:

--- Quote Start ---

Program terminated with signal SIGSEGV, Segmentation fault.

The program no longer exists.

(gdb) backtrace

No stack.

--- Quote End ---

Any advice?

Also, the wiki says "we will add the gdbserver source to uclinux-dist later" -- is there any progress on this? Could the gdbserver currently in uclinux-dist work?

16 Replies