Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- When the debuggee program crashes, the 'gdbserver' will terminate itself. So please get debuggee's 'coredump' file by setting 'ulimit -c ***', for example in your 'bash', And copy it to your PC, and read it by Nios's 'gdb' with the command 'core-file core'. I think that you can reach the position which causes the crash. Then set a breakpoint there and... And don't forget to compile your program with the option switch '-O0'. --- Quote End --- I am trying to use a core file now. I am running `nios2-linux-gnu-gdb mynios2program`, with set solib-absolute-prefix /data/nios/nios2-linux/uClinux-dist/romfs/ in .gdbinit. Then core-file mycorefile, but all I can get is:
warning: Couldn't find general-purpose registers in core file.
# 0 0x00000000 in ?? ()