diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-10-12 22:56:31 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-10-12 22:56:31 +0000 |
commit | e9110f4f31d4034296f20fab2bbad0f63a4b312e (patch) | |
tree | 900419b57f0b2fae5d246aaacb70f73d4b1eb1ed /gdb/remote-rdi.c | |
parent | d93bce0603df8a42ac881c0bf2fa043f147ca14f (diff) | |
download | gdb-e9110f4f31d4034296f20fab2bbad0f63a4b312e.zip gdb-e9110f4f31d4034296f20fab2bbad0f63a4b312e.tar.gz gdb-e9110f4f31d4034296f20fab2bbad0f63a4b312e.tar.bz2 |
2000-10-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
From Grant Edwards <grante@visi.com>
This keeps the GUI alive while running an RDI target and lets the
STOP button be used to stop the target.
* remote-rdi.c (arm_rdi_stop): New function. Implements target_stop.
(init_rdi_ops): Set to_stop target vector entry to the above.
* rdi-share/ardi.c (stop_request): New variable. Tells when a stop
has been requested.
(angel_RDI_stop_request): New function. Registers that a stop has
been requested.
(angel_RDI_ExecuteOrStep): Add call to ui_loop_hook() in loop that
waits while target is executing. Initialize and reset stop_request.
* rdi-share/ardi.h: Add declaration of angel_RDI_stop_request().
Diffstat (limited to 'gdb/remote-rdi.c')
-rw-r--r-- | gdb/remote-rdi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c index 708c45f..2a45cad 100644 --- a/gdb/remote-rdi.c +++ b/gdb/remote-rdi.c @@ -929,6 +929,13 @@ rdi_error_signal (int err) return TARGET_SIGNAL_UNKNOWN; } } + +static void +arm_rdi_stop(void) +{ + angel_RDI_stop_request(); +} + /* Define the target operations structure. */ @@ -944,6 +951,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya)."; arm_rdi_ops.to_detach = arm_rdi_detach; arm_rdi_ops.to_resume = arm_rdi_resume; arm_rdi_ops.to_wait = arm_rdi_wait; + arm_rdi_ops.to_stop = arm_rdi_stop; arm_rdi_ops.to_fetch_registers = arm_rdi_fetch_registers; arm_rdi_ops.to_store_registers = arm_rdi_store_registers; arm_rdi_ops.to_prepare_to_store = arm_rdi_prepare_to_store; |