Author Topic: Problem watching string with gdb  (Read 3346 times)

Zlika

  • Guest
Problem watching string with gdb
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7323
    • My Best Post
Re: Problem watching string with gdb
« Reply #1 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
« Last Edit: January 29, 2007, 05:22:54 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Zlika

  • Guest
Re: Problem watching string with gdb
« Reply #2 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