I am compiling a .elf file for an ARM7 processor and including the -gDWARF-2, for a Nohau emulator. I recently modified my directory structure so my sources are in sub-directories. This has caused the DWARF information to inlclude the directory information (AP_Source/main.c, for example). The problem is the forward slash "/" because gcc is unix based and my emulator software is DOS based. Is there anyway to force the GNU DWARF output to omit any path information? Thanks, Al
Forward slashes are no particular problem to DOS itself (i.e. the OS kernel) at all. It'll happily accept them in file names and do the right thing. I'ld suggest bringing this fact to the attention of Nohau --- their product is buggy.
"I'ld suggest bringing this fact to the attention of Nohau --- their product is buggy." And this cannot be an uncommon situation - there must be lots of people using GNU tools for ARM...?
I would hope so, however, I'm currently left with the fact that I can't debug my code. Is there anyway to force the Keil project to compile in subdirectories instead of compiling by the root name? If I can get rid of the path information, I think I can get this to work. I noticed that (for example) the AP_UserIO.LST file contain the following lines: 1 .file "AP_UserIO.c" 2 .file 1 "AP_Source/AP_UserIO.c" I though the duplication was odd.
In case anyone is using the Nohau emulator (Seehau) - rev v6.0601A of their software resolved the problem. Thanks to all. Al