News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[resolved]why CB+GDB unable see last variable alter?

Started by kextvizi, June 20, 2013, 11:10:57 PM

Previous topic - Next topic

kextvizi

#include <iostream>
int main(void)
{
   int a = 3, b = 4;
   decltype(a) c = a;
   decltype((b)) d = a;
   ++c;
   ++d;//unable see a or d become 4?
}
//my english not very good,I hope I can say clear.

GDB-Version:GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu

CB-Version:

Edit: Removed large image, please use image hosting services for large images to save forum space and our bandwidth. Thank you.

2013-8-6,23:02:26 add:

by supply a  -gstabs+ option to gcc,then this problem is resolved.

oBFusCATed

Because it gets out of scope at the '}'. This is problem of gdb or feature. Talk to its developers. C::B is just a wrapper.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

kextvizi

#2
Quote from: oBFusCATed on June 20, 2013, 11:37:17 PM
Because it gets out of scope at the '}'. This is problem of gdb or feature. Talk to its developers. C::B is just a wrapper.

seem GDB no forum?(I english not not very good,I do not find)
how find to GDB forum or other methods discuss for GDB?

stahta01

Quote from: kextvizi on June 22, 2013, 12:34:09 PM
Quote from: oBFusCATed on June 20, 2013, 11:37:17 PM
Because it gets out of scope at the '}'. This is problem of gdb or feature. Talk to its developers. C::B is just a wrapper.

seem GDB no forum?(I english not not very good,I do not find)
how find to GDB forum or other methods discuss for GDB?

Start here http://www.gnu.org/software/gdb/mailing-lists/

NOTE: Do NOT waste their time talking about Code::Blocks!
Verify the problem exists using the gdb command line.
Then report the problem using the gdb command line as how to duplicate the issue.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

kextvizi

Quote from: stahta01 on June 22, 2013, 03:21:15 PM
Quote from: kextvizi on June 22, 2013, 12:34:09 PM
Quote from: oBFusCATed on June 20, 2013, 11:37:17 PM
Because it gets out of scope at the '}'. This is problem of gdb or feature. Talk to its developers. C::B is just a wrapper.

seem GDB no forum?(I english not not very good,I do not find)
how find to GDB forum or other methods discuss for GDB?

Start here http://www.gnu.org/software/gdb/mailing-lists/

NOTE: Do NOT waste their time talking about Code::Blocks!
Verify the problem exists using the gdb command line.
Then report the problem using the gdb command line as how to duplicate the issue.

Tim S.

Thank you for reminding,I now fell I should before report Peruse  GDB documentation to confirm whether problems from own.