This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ELF & DWARF information

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

Parents
  • 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.

Reply
  • 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.

Children