Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

How to debug in ASM code

Altera_Forum
Honored Contributor II
1,452 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Hi, 

 

I&#39;m trying to debug assembler code, but the debugger never jumps into the asm code like it does with c code. 

It just ignores the breakpoint set on the asm line. 

How do I write asm code to "convince" the compiler/assembler to add debug code?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
694 Views

 

--- Quote Start ---  

originally posted by david_cai@Dec 14 2005, 02:12 AM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif hi, 

 

i&#39;m trying to debug assembler code, but the debugger never jumps into the asm code like it does with c code. 

it just ignores the breakpoint set on the asm line. 

how do i write asm code to "convince" the compiler/assembler to add debug code? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11528) 

--- quote end ---  

 

--- Quote End ---  

 

When in the debugger, select the disassembly mode (icon). Then when calling your assembler routine, you can "step into" the that code.
0 Kudos
Altera_Forum
Honored Contributor II
694 Views

hi, everybody 

 

I can step into asm rountine. 

But how can I run into asm rountine? 

I set a breakpoint in asm code, then run the program, but it can&#39;t stop at the breakpoint. 

 

Anyone help?
0 Kudos
Altera_Forum
Honored Contributor II
694 Views

hello : 

i am new ! 

i don&#39;t know how to set a breakpoint,anyone can help me?
0 Kudos
Altera_Forum
Honored Contributor II
694 Views

Hi wbqyy, 

 

You can set a breakpoint at the line by double click at the left edge space of them.
0 Kudos
Altera_Forum
Honored Contributor II
694 Views

hi, everybody 

 

I can step into asm rountine. 

But how can I run into asm rountine? 

I set a breakpoint in asm code, then run the program, but it can&#39;t stop at the breakpoint. 

 

Anyone help?
0 Kudos
Reply