This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to tell gdb to exit?
- From: Grant Edwards <grante at visi dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 6 May 2004 11:09:44 -0500
- Subject: Re: How to tell gdb to exit?
- References: <20040506155013.GB12206@grante.dsl.visi.com>
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 <<EOF
> 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