Answers:This is the way I debug GDB under C::B. (I build GDB under MSYS shell).
1. There is an option to prevent auto building: Settings -> Debugger -> Common -> Auto build project if it is not up to date.
... 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?
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.U-boot is build by using make command, not using codeblocks.
1. There is an option to prevent auto building: Settings -> Debugger -> Common -> Auto build project if it is not up to date.This seems to solve the 1st question. thanks.
could you open z:/u-boot.201301/file1.c instead of /home/Tom/project/u-boot.201301/file1.c while debuggingWhen you build the file under /home/Tom/project/u-boot.201301/file1.c, let the compiler build with relative path, e.g.
gcc file1.c
directory z:/u-boot.201301