stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] tty redirection from GDB to xterm not working


From: Julian Stecklina
Subject: Re: [STUMP] tty redirection from GDB to xterm not working
Date: Wed, 28 Apr 2010 14:58:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Carlos Konstanski <address@hidden> writes:

> On 04/27/2010 03:40 AM, Julian Stecklina wrote:
>> Carlos Konstanski <address@hidden> writes:
>> 
>>> I am running an ncurses C++ program under GDB from within Emacs for a
>>> programming assignment at school. I use the following trick to get the
>>> console output redirected to an xterm so that the ncurses stuff works:
>>>
>>> http://cdw.sourceforge.net/documentation/emacs_gdb_ncurses/emacs_gdb_ncurses.en.html#cleaning_upa
>>>
>>> The problem is that I have to log into an xfce4 desktop environment to get
>>> this to work. If I try it from stumpwm, I get the following message in the
>>> xterm when GDB tries to send output to it:
>>>
>>> warning: GDB: Failed to set controlling terminal: Operation not permitted
>>>
>>> All things are equal except that in one case I am running xfce4, and in the
>>> other case I am running stumpwm. I am running stumpwm from the saved image
>>> that is built by the makefile, and I am using SBCL.
>>>
>>> Any ideas how I can get past this problem?
>> 
>> I can reproduce this, but I am unsure whether this is a bug. And I can't
>> really imagine how this is stump's fault. In my 2min survey (google
>> "GDB: Failed to set controlling terminal") I found lots of people having
>> the same problem in different scenarios.
>> 
>> Could you file a bug?
>> 
>> Regards,
>
> Thanks for taking the time to reproduce this. With whom should I file the
> bug? GDB? Stumpwm?

I think the GDB people have a better overview of this. If you find a
solution, don't hesitate to post your results here, though.

> Do any of you regularly debug C++ ncurses apps? Is there another alternative
> besides tty redirection?

You can start the app in a terminal and attach to it from GDB. This is
what I used some years ago.

Regards,
-- 
Julian Stecklina

"It's class warfare, my class is winning, but they shouldn't be."
Warren Buffet, World's Richest Person 2007





reply via email to

[Prev in Thread] Current Thread [Next in Thread]