- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using the ISS (Instruction Set Simulator). I would like to start program execution by stepping through crt0.s. However, the IDE has that option greyed out. I circumvented it by simply setting a breakpoint on the label _start in crt0.s, which works. So, problem solved. But just to be curious: is this 'step into first instruction' not possible in the Eclipse IDE ? Bye, Roland.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wasn't able to step into asm at all :/
so I did a call to a dummy function. It allows at least to see registers .. (working on Nios II) slvn- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
roland,
Which option are you referring to as greyed out? With both the ISS and real hardware you can't step until the initial startup code has run and the program has stopped (at alt_main or main usually). Why do you need to step through crt0.s? ps. If you are having problems stepping through assembler code without debug information then try doing it in dissasembly mode (the upside down pile of bricks)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Wombat,
The option 'step into' was greyed out in the IDE's 'debug' view, when I had not started program execution yet. The option of stepping into execution is something I knew from the Visual Studio environment, so it just caught my attention that it was not there. So.. why would anybody step through the nitty-gritty details of crt0.s. The reason is that the first C-statement in my main() routine was not reached. Instead, the ISS bailed out, indicating that a non-initialized value was read. So, I wanted to know where execution flow decided to generate an ISS error instead of reaching main(). I can see now that crt0.s is executed succesfully, and the ISS error is thrown in a strcmp() in the context of system initialization of the timer. Haven't figured out why, yet. Anyway, my question regarding this issue has been answered so thank you for the replies ! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you don't get to main then I suggest ticking the "stop at alt_main" tickbox in the launch configuration.
You can then step through alt_main and the functions it calls to find out what's wrong (just for future use since you seem to have worked out the problem already).
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