Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHi,
--- Quote Start --- I have followed the guide of nioswiki about:"Debug user space " but I have some doubts. The first one is with this command: I mean "nios2-wrs-linux-gnu" is the same as "nios2-linux-gnu"?, because I haven't found the folder "nios2-wrs-linux-gnu". --- Quote End --- The command
set solib-absolute-prefix ~/nios2-linux/toolchain-mmu/x86-linux2/nios2-wrs-linux-gnu/libc
indicates the search path of dynamic-link libraries to 'gdb'. And you don't need to set this if you don't want to debug the inside of libraries. But you should have the folder 'nios2-wrs-linux-gnu'. Maybe something is wrong. --- Quote Start --- The other problem that I met is when I have to generate the .gdb file. With the binary tool chain of nioswiki I have to use this command to create de .gdb file. But can I create .gdb file with the toolchain-mmu?. I have read that I have to compiled again my application with -g , I have checked with :"nios2-linux-gnu-gcc -g ..." but I didn't go. If someone can suggest me any ideas. --- Quote End --- Don't worry about it. The executable 'elf' file has all debug information in it by typing
nios2-wrs-linux-gnu-gcc -g -O0 -o <your_executable_file> <your_source_file>
. Kazu