Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: undofen on December 02, 2005, 12:38:47 am

Title: problems with gdb
Post by: undofen on December 02, 2005, 12:38:47 am
I've got problems with the debuger, when I set a break point, the debuger passes it without stopping and displays:
Code
tbreak /home/undofen/c++/sudoku/sudoku.cpp:
Function "" not defined.
Breakpoint 1 (/home/undofen/c++/sudoku/sudoku.cpp:) pending.
The second problem is, can I give some intput to a debugged program ? I had the same problem with Kdevelop, and they added a option for the debugger to open a seperate window for input/output, is this possible with C::B ?
Title: Re: problems with gdb
Post by: wuxian610 on December 02, 2005, 03:29:11 am
Hi, my friend:

           I had the same problem as you, and it haven't been solved by now~
           If you get a way, could you please tell me here? Thank you very much!
 
                                                                                       yours
Title: Re: problems with gdb
Post by: mandrav on December 02, 2005, 10:54:27 am
This has been noticed when using MSW2.6.2/unicode.
I have started another topic on this issue. Basically when streaming numbers to wxString, it doesn't work with MSW2.6.2/unicode. I don't know why and I haven't got any useful replies to that by anyone...

Code
wxString str;
str << _T("Hi"); // ok
str << 5; // *not* ok; 5 is not appended to str
Title: Re: problems with gdb
Post by: MortenMacFly on December 02, 2005, 11:15:57 am
Code
wxString str;
str << _T("Hi"); // ok
str << 5; // *not* ok; 5 is not appended to str

Just curious, but does this work-around work?:
Code
wxString str;
str << "Hi" << 5;
wxString str_new(_T(str));

(I cannot test it at the moment since I am at work.)

Morten.

Ps.: Sorry for the post not belonging in here but where is the original post with this request?
Title: Re: problems with gdb
Post by: mandrav on December 02, 2005, 11:53:49 am
Ps.: Sorry for the post not belonging in here but where is the original post with this request?

It's here: http://forums.codeblocks.org/index.php?topic=1459.0
Title: Re: problems with gdb
Post by: undofen on December 02, 2005, 02:04:22 pm
Ok, and what about the gdb i/o console ? I found that this was unresolved about 2 months ago, from a topic on the forum here. Is there any chance for this to be added ?
Title: Re: problems with gdb
Post by: mandrav on December 02, 2005, 02:31:11 pm
Ok, and what about the gdb i/o console ? I found that this was unresolved about 2 months ago, from a topic on the forum here. Is there any chance for this to be added ?

This works in windows. I 'm still trying to make it work in other platforms.