Bug #15209 2009-02-06 12:41

ollydbg

dissassemble command can't send to GDB

Windows, MinGW, when debugging these code

---------------------------------------------------------

template <typename X>

int Bugtest(X _x)

{

return sizeof(_x); //ONLY set breakpoint here

}

int main()

{

int t_ix = 1;

cout << Bugtest(t_ix) << endl;

char t_cx = '0';

cout << Bugtest(t_cx) << endl;

return 0;

}

------------------------------------------------------------

The first time, the program stopped at the breakpoint, then disassemble command will send to GDB correctly. But continuously running to meet the breakpoint second time, the disassemble command will not send again. So, the Disassemble window can't be updated.

C::B thought it stops in the same line, so it thinks the disassemble code will not be change. But this is not true, because the same line reference to the different function code when using C++ template.

See a discussing in

http://forums.codeblocks.org/index.php/topic,9873.msg69799.html#msg69799

Category
Debugger
Group
 
Status
Closed
Close date
2011-04-09 21:45
Assigned to
tpetrov
tpetrov 2011-04-09 21:45

I think this was fixed, reopen if it is not.