This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix GDB's handling of the inferior controlling terminal
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 12 Mar 2008 18:49:48 +1300
- Subject: Re: [RFA] Fix GDB's handling of the inferior controlling terminal
> The attached patch makes GDB set the inferior's controlling terminal,
> fixing both of the symptoms above. If the user specifies a different
> inferior terminal, GDB will now create a new session right after forking
> to run the inferior, and use the TIOCSCTTY ioctl to set the controlling
> terminal.
I like this change but under what conditions can GDB set the inferior's
controlling terminal? I've created a pty without a controlling process in
Emacs and specified it for the inferior terminal but, using your patch, I still
get the message:
warning: GDB: Failed to set controlling terminal: Operation not permitted
Do I need to run GDB as root?
--
Nick http://www.inet.net.nz/~nickrob