Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Verbose console mode in DSF/GDB

I knew I had seen a DOS window come up!  It was not my imagination :-)
(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=231883)

We should get this feature for DSF-GDB since it is important on Windows.
From what you are saying, we should use the new-console when no PTY is
available (which includes Windows), or should we really only use it on
Windows?  I'm thinking the former.

I'll update the bug with your info.

Thanks!

Marc

________________________________________
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer [cdtdoug@xxxxxxxxx]
Sent: September 13, 2010 9:47 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Verbose console mode in DSF/GDB

Have you ever debugged with CDI/MI and seen an DOS window pop up when
you launch for debug? In recent years our gdb integration does an
explicit "set new-console off" explicitly to turn off this feature as
we try to capture the stdout from the inferior. Unfortunately that I/O
is buffered on Windows (we use pty to force the output on Linux), and
worse, on exit it doesn't flush, it's just gone. If you let a console
pop up naturally you'll see the output there as the program steps.

Now, for some reason, the checkbox in the MI launcher that is supposed
to enable/disable is greyed out and the feature is disabled (even
though the checkbox is turned on). We had a customer run into that and
we had to tell them to use the "Standard" instead of "Standard
(Windows)" command factory to bypass the "set new-console off" call.
It's ugly all 'round.

On Mon, Sep 13, 2010 at 9:33 PM, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:
> Hi,
>
> I'm not familiar with the "set new-console on" feature and how it helps for Windows.
> But it may shed some light on bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=231883,
> Bug 231883 - [console][cdi] Inferior does not print to console when a PTY is not available
>
> which we were trying to figure if it really was a bug or not.
> Could you give more details about that setting?
>
> Thanks
>
> Marc
>
> ________________________________________
> From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer [cdtdoug@xxxxxxxxx]
> Sent: September 13, 2010 7:29 PM
> To: CDT General developers list.
> Subject: Re: [cdt-dev] Verbose console mode in DSF/GDB
>
> I also notice that the show output in console mode (i.e. set
> new-console on) is not available in DSF/GDB. That's often needed for
> proper display of Windows output during debug.
>
> On Mon, Sep 13, 2010 at 5:54 PM, Mikhail Khodjaiants
> <mikhailkhod@xxxxxxxxxxxxxx> wrote:
>> Hi,
>>
>> I can't find any kind of support for the verbose console mode in DSF/GDB. Is
>> it missing or am I missing something?
>>
>> Thanks,
>> Mikhail
>>
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>>
>>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top