How to tell gdb to exit?

Grant Edwards grante@visi.com
Thu May 6 16:09:00 GMT 2004


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



More information about the Gdb mailing list