From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6029 invoked by alias); 17 Jan 2003 22:34:34 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 6010 invoked from network); 17 Jan 2003 22:34:30 -0000 Received: from unknown (HELO lizzard.sbs.de) (194.138.37.39) by sources.redhat.com with SMTP; 17 Jan 2003 22:34:30 -0000 Received: from mail.fth.sbs.de (mail.fth.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.11.6/8.11.6) with ESMTP id h0HMYST06617; Fri, 17 Jan 2003 23:34:29 +0100 (MET) Received: from r3389.erlf.siemens.de (r3389.erlf.siemens.de [194.138.228.11]) by mail.fth.sbs.de (8.11.6/8.11.6) with ESMTP id h0HMYR020582; Fri, 17 Jan 2003 23:34:27 +0100 (MET) Received: from burma. (r6771.erlf.siemens.de [157.163.225.12]) by r3389.erlf.siemens.de (8.8.8/8.8.8) with ESMTP id XAA17778; Fri, 17 Jan 2003 23:34:27 +0100 (MET) Received: from bigfoot.de (r5087 [157.163.210.27]) by burma. (8.10.2+Sun/8.10.2) with ESMTP id h0HMYPW12322; Fri, 17 Jan 2003 23:34:25 +0100 (MET) Message-ID: <3E2884ED.50F6AF9D@bigfoot.de> Date: Fri, 17 Jan 2003 22:34:00 -0000 From: Achim Bursian Organization: --- X-Accept-Language: de MIME-Version: 1.0 Newsgroups: gnu.gdb.bug To: insight@sources.redhat.com, gdb@sources.redhat.com Subject: Find out if GUI active in .gdbinit Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q1/txt/msg00027.txt.bz2 Hello, how can I find out if the GUI (Insight) is running while executing .gdbinit. I want to take different steps when -nw is given (especially issue some tk commands if Insight is active). And secondly, how can I source a gdb commandfile only if it exists? Something like if file exists $HOME/second.gdb source $HOME/second.gdb endif What is the way to do this in gdb (within .gdbinit)? Thanks for help. (If possible, CC: to my mailaddress) Achim