User forums > Help
Debug problem with header files
RJP Computing:
I am trying this using 'gdb.exe' and can't get it to stop. I tried in C::B and sure enough it is breaking like it should. So... I am assuming C::B is doing something right that I am not. Sorry for my noise, but I am trying to continue to use gdb so I would like some help. Can you use MSys or something and use just the 'gdb.exe'.
Also I understand that this is not a C::B related issue so should it be moved to a different forum/email/something?
TDragon:
Before trying it in C::B, I tried it from command-line gdb with
--- Code: ---break template_headerbrk.h:12
--- End code ---
which worked fine for me, as did
--- Code: ---break "C:\path\to\headerbrk\wxtools\wx\serialization\template_headerbrk.h":12
--- End code ---
So I have no idea what the problem on your end is.
And, yes, unless you come up with a scenario that breaks in C::B, I suspect this has gone off-topic.
RJP Computing:
--- Quote from: TDragon on April 14, 2009, 12:54:03 am ---Before trying it in C::B, I tried it from command-line gdb with
--- Code: ---break template_headerbrk.h:12
--- End code ---
which worked fine for me, as did
--- Code: ---break "C:\path\to\headerbrk\wxtools\wx\serialization\template_headerbrk.h":12
--- End code ---
So I have no idea what the problem on your end is.
--- End quote ---
Thanks. I had tried a few sytax's and now that works. I am not very familiar with gdb.exe so I was trying to follow the earlier post in this thread that was using gdb.exe. I will let my issues rest. Again thanks for your patience and understanding.
--- Quote from: TDragon on April 14, 2009, 12:54:03 am ---And, yes, unless you come up with a scenario that breaks in C::B, I suspect this has gone off-topic.
--- End quote ---
Correct. And sorry for the noise.
nenin:
--- Quote --- <***> So I have no idea what the problem on your end is. <***>
--- End quote ---
I figured out a case (at least, my case). I have a complicated project structure, with sources in the set of folders.
C::B sets breakpoint as:
"c:/MinGW/run/prj_root/template_header.hpp:13
But in gdb console path to this line looks like:
At c:/MinGW/run/prj_root/v01/../template_header.hpp:13
"v01" is a folder, where template from "template_header.hpp" was instated.
So, if I send to gdb
break c:/MinGW/run/prj_root/v01/../template_header.hpp:13
it works. But C::B can not set a breakpoint properly. :(
ollydbg:
--- Quote from: nenin on April 15, 2009, 10:39:12 am ---
--- Quote --- <***> So I have no idea what the problem on your end is. <***>
--- End quote ---
I figured out a case (at least, my case). I have a complicated project structure, with sources in the set of folders.
C::B sets breakpoint as:
"c:/MinGW/run/prj_root/template_header.hpp:13
But in gdb console path to this line looks like:
At c:/MinGW/run/prj_root/v01/../template_header.hpp:13
"v01" is a folder, where template from "template_header.hpp" was instated.
So, if I send to gdb
break c:/MinGW/run/prj_root/v01/../template_header.hpp:13
it works. But C::B can not set a breakpoint properly. :(
--- End quote ---
Maybe, this is the issue that cb treat differently with relative path and absolute path. I encountered this kind of problem when I want to debug into the wxWidgets source(at that time, I use wxPack), but it failed.
See the post:
http://forums.codeblocks.org/index.php/topic,9744.0.html
But no body replied there. :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version