Altera_Forum
Honored Contributor
21 years agoeclipse debug fails
I followed recomendation from "Linux reference guide.pdf" for nios2 and tried to debug hello application for my prepared system. As described on page 23, I tried:
# debug hello.gdb with the following response: DEBUG: running "hello.gdb" ... BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) BINFMT_FLAT: bad magic/rev (0x10101ff, need 0x4) without propmt at the end, I don't know what does it means but the first line was ok, so I tried to debug hello in Eclipse. There I also followed step by step procedure to get desired results, but for example when printf( "%s", greetings ) command had been in debug mode executed, then no nice message in the bash terminal appeared and after another printf() command execution it printed something like this "ELF" and the debug session in dev. board stopped (# prompt appeared) while debug in eclipse still indicated "stepping".. conclusion on the problem - debugging in eclipse goes wrong and I dont know why.. !!! maybe the problem comes with my non-standard development station configuration: - Nios II IDE v 1.1 - Nios cyclone 1c20 dev. kit ----here is no mistake i really mean Nios not Nios II - LPT ByteBlaster II - uClinux Kernel v 2.6 thanks http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif