Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
Debug U-boot support?
jinxin16897123:
Currently , to debug a target , the prerequisite is build, is there gona to support debug only project? ie. u-boot; I'll be appreciate if you could add a feature : the source file was located in /home/Tom/project/u-boot.201301 in computer A, this location was mapped to another computer B at z:/u-boot.201301, I'm gona debug it at computer B, it was built in computer A, could you open z:/u-boot.201301/file1.c instead of /home/Tom/project/u-boot.201301/file1.c while debugging?
Thank you very much.
oBFusCATed:
Answers:
1. There is an option to prevent auto building: Settings -> Debugger -> Common -> Auto build project if it is not up to date.
2. Probably you can try to set the directory in the initial commands, using the "set directory" gdb command, but I'm not sure it will work.
ollydbg:
--- Quote from: oBFusCATed on November 06, 2013, 08:21:45 am ---Answers:
1. There is an option to prevent auto building: Settings -> Debugger -> Common -> Auto build project if it is not up to date.
--- End quote ---
This is the way I debug GDB under C::B. (I build GDB under MSYS shell).
osdt:
--- Quote from: jinxin16897123 on November 06, 2013, 03:22:32 am ---... I'll be appreciate if you could add a feature : the source file was located in /home/Tom/project/u-boot.201301 in computer A, this location was mapped to another computer B at z:/u-boot.201301, I'm gona debug it at computer B, it was built in computer A, could you open z:/u-boot.201301/file1.c instead of /home/Tom/project/u-boot.201301/file1.c while debugging?
--- End quote ---
C::B uses full file paths on compile by default and they are embedded in the debugee. To use relative file paths goto (global) 'Settings->Compiler->Other settings->Advanced options...->Others' and uncheck 'Use full paths for source files'. Rebuild the project and you're done.
- osdt
jinxin16897123:
--- Quote ---C::B uses full file paths on compile by default and they are embedded in the debugee. To use relative file paths goto (global) 'Settings->Compiler->Other settings->Advanced options...->Others' and uncheck 'Use full paths for source files'. Rebuild the project and you're done.
--- End quote ---
U-boot is build by using make command, not using codeblocks.
I just want to use codeblocks for debug ,not compile.
Navigation
[0] Message Index
[#] Next page
Go to full version