User forums > Help

Debug problem with header files

<< < (6/6)

TDragon:

--- Quote from: ollydbg on April 15, 2009, 11:56:25 am ---See the post:
http://forums.codeblocks.org/index.php/topic,9744.0.html

But no body replied there. :(

--- End quote ---
That might be because your issue there is almost entirely unrelated.


--- Quote from: nenin on April 15, 2009, 10:39:12 am ---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 ---
If verified, this appears to be a bug in GDB.

ollydbg:

--- Quote from: rhf on April 10, 2009, 06:05:50 pm ---I know, and it is frustrating that I can't come up with a test case as I did for the previous problem. I am currently working on a fairly large program; and every now and then, when I set a break in a header file, the debugger fails. I keep wondering if it is perhaps a problem with the project search directories, but I have not been able to identify anything obvious. Thanks again for your good work.

--- End quote ---
@rhf

I meet the same problem when I'm include an inline function header in many CPP files, then setting brekpoints may fails.

But I have solved the problem by adding GCC options. You can see this post, maybe, it's the cause of your problem.

http://forums.codeblocks.org/index.php/topic,10508.msg73723.html#msg73723

 :D

rhf:

--- Quote from: ollydbg on June 25, 2009, 06:53:09 pm ---@rhf
I meet the same problem when I'm include an inline function header in many CPP files, then setting brekpoints may fails.
But I have solved the problem by adding GCC options. You can see this post, maybe, it's the cause of your problem.
http://forums.codeblocks.org/index.php/topic,10508.msg73723.html#msg73723

--- End quote ---
I have been following that thread. The next time I have the problem, which seems to occur only with my larger, more complicated projects, I will definitely try the compiler options. Thanks very much!

Navigation

[0] Message Index

[*] Previous page

Go to full version