bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdbmi exec-interrupt problem


From: Andrew Cagney
Subject: Re: gdbmi exec-interrupt problem
Date: Thu, 10 May 2001 01:47:27 -0400
User-agent: Mozilla/5.0 (X11; U; NetBSD 1.5V macppc; en-US; 0.8.1) Gecko/20010502

I am using the gdbmi interface to talk to GDB. I can get the process
running, but I can't stop it again using -exec-interrupt.

If I start gdb in a console:

gdb-mi -nw --interpreter=mi

and load and start my program:

GNU gdb 5.0 (20001125-1) (UI_OUT)
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
(gdb)
file hello
&"file hello\n"
^done
(gdb)
-exec-run
^running
(gdb)

then the terminal locks up and I can't type any more commands, so I can't
enter '-exec-interrupt' to stop the inferior process. Typing Ctrl-C does
stop the process, but I would rather use the proper commands.

The -exec-interrupt command only works with async targets and the only async target is async-remote.

For the moment, send the GDB process a SIGINT.

        Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]