Code::Blocks Forums

User forums => Help => Topic started by: Zlika on January 29, 2007, 05:13:02 pm

Title: Problem watching string with gdb
Post by: Zlika on January 29, 2007, 05:13:02 pm
Hi all !
I use the last friday nightly build with GDB 5.2.1.
When I try to debug and watch a string variable, I've got this message (instead of the value of the string):

Cannot resolve method string::c_str() to any overloaded instance

Is it a known bug? I've searched the forum but I haven't found this kind of problem.

Zlika
Title: Re: Problem watching string with gdb
Post by: stahta01 on January 29, 2007, 05:18:20 pm
Hi all !
I use the last friday nightly build with GDB 5.2.1.
Zlika

I think you need to use the GDB 6.x; They do NOT support 5.2.1 officially; and changes in the past month was said to break the working of GDB 5.x. So, if you must use GDB 5.x try a month old build. Note, I do NOT used gdb so take what I say with a grain of salt. But, I do read a lot of posts.

Tim S
Title: Re: Problem watching string with gdb
Post by: Zlika on January 31, 2007, 07:06:12 pm
Thank you for your answer.
It's indeed working with a 6.x version of GDB!

Zlika