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++
12603 Discussions

difference between nios2-debug & debug from IDE

Altera_Forum
Honored Contributor II
1,112 Views

Hi. 

Is there anybody who knows a difference between nios2-debug and 

debugging from IDE? 

 

I'd like to open debugger by nios2-debug style (correctly saying, gdb on emacs). 

I can debug from eclipse but it stopped when "jump _start" from gdb. 

 

Do you have any idea? 

 

Regards.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
290 Views

I've found an answer by myself. 

 

nios2-debug loads binary image through nios2-gdb-server, but 

debugger on IDE loads image by nios2-download. 

 

It failed when I invoked nios2-elf-gdb from Emacs 

because I wrote .gdbinit by copying from nios2-debug like below: 

file test.elf 

target remote localhost:2342 

load test.elf 

break main 

jump _start 

 

When I load by nios2-download (without -g option) and I remove "load test.elf" from .gdbinit, it succeeded to debug from nios2-elf-gdb on Emacs. 

 

Thanks.
0 Kudos
Reply