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

how to make elf file include windows path,

Altera_Forum
Honored Contributor II
1,420 Views

We use NIOS II IDE to generate the executable file. And use Lauterbach's ICD and debugger to debug. Souce files path information in elf files are cygwin path, but the debugger need windows path information. So, can anyone know how to config the IDE to generate elf file with windows path information? 

 

example: 

my source file is: 

d:\altera\test\test2\hello_world.c 

but the debugger show error as following: 

 

d:\cygwin\d\altera\test\test2\hello_world.c file not found. 

 

Thanks a lot.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
709 Views

 

--- Quote Start ---  

originally posted by bluesky@Mar 31 2005, 08:49 PM 

we use nios ii ide to generate the executable file. and use lauterbach's icd and debugger to debug. souce files path information in elf files are cygwin path, but the debugger need windows path information. so, can anyone know how to config the ide to generate elf file with windows path information? 

 

example: 

my source file is: 

d:\altera\test\test2\hello_world.c 

but the debugger show error as following: 

 

d:\cygwin\d\altera\test\test2\hello_world.c  file not found. 

 

thanks a lot. 

--- Quote End ---  

 

Ok, I find the answer. Wish it can help others who have the same question. 

 

1)If you use Trace32 ICD's debugger, you can use the StripPART option to strip part of the path information in elf file.  

 

2)Use cygpath.exe to convert cygwin path to windows path.
0 Kudos
Reply