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

how to achieve source level debug in Keil with elf image built in ubuntu?

I can download ELF image in Keil and do assembly debug, how to let Keil know source location? Source can be accessed through samba \\x.x.x.x\home\user\src\..., while it doesn't match the location which is linux style /home/user/src/...

Parents
  • I've changed the debug_info in elf file to windows mapping folder with debugedit, and added "-O0 -g -g3 -gdwarf-3 -gstrict-dwarf" to build dwarf-3 version debug_info. Now Keil could load source code correctly, while it can't run step with source level, but still assembly step. How to fix this kind of issue?

Reply
  • I've changed the debug_info in elf file to windows mapping folder with debugedit, and added "-O0 -g -g3 -gdwarf-3 -gstrict-dwarf" to build dwarf-3 version debug_info. Now Keil could load source code correctly, while it can't run step with source level, but still assembly step. How to fix this kind of issue?

Children