User forums > Using Code::Blocks

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

(1/1)

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.

kextvizi:

--- 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.

--- End quote ---

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.

--- End quote ---

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?

--- End quote ---

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.

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.

--- End quote ---

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?

--- End quote ---

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.

--- End quote ---

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

Navigation

[0] Message Index

Go to full version