From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30290 invoked by alias); 6 May 2004 16:09:47 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30275 invoked from network); 6 May 2004 16:09:47 -0000 Received: from unknown (HELO omr4.netsolmail.com) (216.168.230.140) by sources.redhat.com with SMTP; 6 May 2004 16:09:47 -0000 Received: from ms5.netsolmail.com (IDENT:mirapoint@[216.168.230.178]) by omr4.netsolmail.com (8.12.10/8.12.10) with ESMTP id i46GDrhT005922 for ; Thu, 6 May 2004 12:13:54 -0400 (EDT) Received: from rivatek.dnsalias.net (rrcs-west-67-52-40-137.biz.rr.com [67.52.40.137]) by ms5.netsolmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id BGX64311; Thu, 6 May 2004 12:09:44 -0400 (EDT) Received: by rivatek.dnsalias.net (Postfix, from userid 500) id 610FBA9D9F; Thu, 6 May 2004 11:09:44 -0500 (CDT) Date: Thu, 06 May 2004 16:09:00 -0000 From: Grant Edwards To: gdb@sources.redhat.com Subject: Re: How to tell gdb to exit? Message-ID: <20040506160943.GA12676@grante.dsl.visi.com> References: <20040506155013.GB12206@grante.dsl.visi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040506155013.GB12206@grante.dsl.visi.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-05/txt/msg00046.txt.bz2 On Thu, May 06, 2004 at 10:50:14AM -0500, Grant Edwards wrote: > In MI mode, I can't figure out what the "quit" command is, and > it just hangs on EOF -- so this doesn't work either: > > #!/bin/bash > h8300-elf-gdb -interpreter=mi < 10-target-select async /dev/ttyS0 > 20-target-download test.elf > 30-exec-continue > EOF I've also tried -gdb-exit. Gdb refuses to exit since it's obviously smarter than I and knows a-priori that I don't know what I'm talking about and I obviously don't _really_ want it to exit. -target-detch and -target-disconnect don't make any difference either. -- Grant Edwards grante@visi.com