Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CDT 8.4: gdb debugging session freeze

I actually see this quite a bit.

The reason is that stdout is getting in the way of the MI Output.

Basically your program wrote "fact;" to stdout with no eol. Then a breakpoint got hit and the MI Output was wrote.

Eclipse reads 1 line at a time expecting there to be an EOL, but in this case there was not so it just mashed the 2 lines together. Eclipse now thinks this is just program output.

I am really not sure of a solution to this problem except for tuning of program stdout. That is what I end up having to do most of the time because my program output get in the way to the GDB MI Output all the time.

It seems like there should be a way to differentiate between the streams, besides just looking at the first character.

Joseph Henry.

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Francis ANDRE
Sent: Friday, June 13, 2014 12:50 PM
To: CDT General developers list.
Subject: [cdt-dev] CDT 8.4: gdb debugging session freeze

Hi All

I am debugging a  templated C++ application with CDT 8.3 on a Cygwin
/W7/x86_64 platform and stepping into a visitor, the CDT debugger freezes itself whitout any error or information message...

How can I get the debugger or gdb emitting some information on what kind of problem it have?

Here the gdb log
542,797 (gdb)
542,797 int
fact;*stopped,reason="end-stepping-range",frame={addr="0x000000010040a2f8",func="DepthFi\
rstRetArguVisitor<Value<int>*>::visit(AST::CompilationUnit<Value<int><int>
 >&, int)",args=[{name="th\
is",value="0x6000563c0"},{name="n",value="..."},{name="a#0",value="0"}],file="Z:\\DEV\\LLVM\\x64\\SP\
LC-jtb\\ast\\visitor/DepthFirstRetArguVisitor.h",fullname="/cygdrive/z/DEV/LLVM/x64/SPLC-jtb/ast/vis\
itor/DepthFirstRetArguVisitor.h",line="102"},thread-id="1",stopped-threads="all"
542,797 (gdb)

FA

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top