User forums > Using Code::Blocks
set breakpoint path problem
DoMeN:
Hi,
I'm using a Windows machene with a toolchain that was ment for linux so I have to use cygwin.
The problem is that when I try to set a breakpoint in C::B I get no "such file ..." message. The same happens if I use gdb without C::B but there I can write the path differently and everything is OK.
C::B tries to set the path like this: break "C:/cygwin/home/moon/uart/hello.c:69" and cygwin can't seem to swollow this type of path. The only thing that worked for me (in case I set a breakpoind with the path to it) was: break "/home/moon/uart/hello.c:69" (don't know why break "/cygdrive/c/cygwin/home/moon/uart/hello.c:69" doesn't work).
Has anyone used C::B with cygwin?
Can I change the path that C::B uses to set breakpoints (if not could this be please implemented)?
r. Domen
mandrav:
If your toolchain works like cygwin, then your user compiler must be a copy of the cygwin compiler, not gcc.
DoMeN:
I'm using a gcc cross-compiler for a different processor so I can't use cygwin gcc (the same sources are used to build a toolchain under linux and there everything works OK). Are wou suggesting that this is a -g flag problem of cross-compiler gcc?
Please explain a bit more.
Domen
mandrav:
That's not what I 'm saying.
How have you setup the compiler? Edited an existing one? Or created a copy of an existing compiler and edited that one (the copy)?
Either way, what I ' m saying is that you should use the 'cygwin' compiler as a base for your toolchain.
DoMeN:
First of all I stil don't understand what this has to do with gdb as when using gdb without C::B I stil can't set the breakpoints like: break "C:/ ... or break "/cygdrive/ ...
The toolchain is patched so that you can cross-compile for a gnu unsupported processor so patching cygwin toolchain would be almost the same as patching MinGW as we don't have patches for either of them (too old version - patches are ment for the last version).
The only solution that I see is to alwais put projects in cygwin/home/... and have an option in C::B to set the string that should be used before the root project directory part eg. break "/home/test/project/hello.c" where /home/test/ is added in a edit inside C::B (somewhere in the poject settings) and that you enable/disable this (enable/disable use my own path to root project dir) the same way as with makefiles (use my own makefile).
Domen
Navigation
[0] Message Index
[#] Next page
Go to full version