From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65823 invoked by alias); 1 Jul 2016 18:32:18 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 65738 invoked by uid 89); 1 Jul 2016 18:32:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,WEIRD_QUOTING autolearn=no version=3.3.2 spammy=Want, Terminal X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 01 Jul 2016 18:32:16 +0000 Received: from EUSAAHC006.ericsson.se (Unknown_Domain [147.117.188.90]) by usplmg21.ericsson.net (Symantec Mail Security) with SMTP id FF.86.03614.EE6B6775; Fri, 1 Jul 2016 20:31:10 +0200 (CEST) Received: from EUSAAMB103.ericsson.se ([147.117.188.120]) by EUSAAHC006.ericsson.se ([147.117.188.90]) with mapi id 14.03.0294.000; Fri, 1 Jul 2016 14:32:13 -0400 From: Marc Khouzam To: "gdb@sourceware.org" Subject: Is there a way to unset inferior-tty? Date: Fri, 01 Jul 2016 18:32:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00000.txt.bz2 Hi, Is there a way to unset inferior-tty? I'm working on different possible solutions to allow Eclipse to handle when= the user types 'run' on the GDB console. Currently, when that happens, the inferior= fails to restart because it tries to use the previous tty which has been closed. I wanted to test simply removing the setting for the tty to allow the infer= ior to start in this case. But I can't figure out how to unset it. Any ideas? Can I set it to something that would be the equivalent to unsetting it? (gdb) show inferior-tty=20 Terminal for future runs of program being debugged is "". <------ Want th= is back (gdb) set inferior-tty /dev/pts/3 (gdb) show inferior-tty=20 Terminal for future runs of program being debugged is "/dev/pts/3". (gdb) set inferior-tty Argument required (filename to set it to.). (gdb) set inferior-tty "" (gdb) show inferior-tty=20 Terminal for future runs of program being debugged is """". <--- Not good e= nough (gdb) set inferior-tty '' (gdb) show inferior-tty=20 Terminal for future runs of program being debugged is "''". <--- Not good e= nough (gdb) unset inferior-tty Undefined unset command: "inferior-tty". Try "help unset". Thanks Marc