- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.gifLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, the debug command that you run from within Nios II linux is
debug app not debug app.gdb The gdb file is necessary on the host side not on your Nios II Linux system. Let me know if I've been unclear.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi Ken,
thank you, now it works much more better http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello! When I use one of the sample applications (like ping.exe) and compile it for debug as the Quick Start manual says, I have a problem when I try to "debug ping", I get an immediate "I/O Error . . . " and then back to the command prompt.
Any ideas? When I delete all of the code from ping.exe and just put a simple printf() it, it debugs just fine. Other sample apps do exactly the same thing. *Brian
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page