diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 2000-01-06 03:07:20 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 2000-01-06 03:07:20 +0000 |
commit | 1961aa2638e1c11c166de668e780a4385b724265 (patch) | |
tree | f6ee7ff39bd6a3525560cdf62b30748be2a6f33d /gdb/rdi-share/ardi.c | |
parent | 3cee212a702cfb7f44caebf7a6389e17771a3072 (diff) | |
download | gdb-1961aa2638e1c11c166de668e780a4385b724265.tar.gz |
import gdb-2000-01-05 snapshot
Diffstat (limited to 'gdb/rdi-share/ardi.c')
-rw-r--r-- | gdb/rdi-share/ardi.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/rdi-share/ardi.c b/gdb/rdi-share/ardi.c index f55d636450a..3805352150a 100644 --- a/gdb/rdi-share/ardi.c +++ b/gdb/rdi-share/ardi.c @@ -11,8 +11,8 @@ * Angel Remote Debug Interface * * - * $Revision: 1.5 $ - * $Date: 1999/11/01 15:29:56 $ + * $Revision: 1.6 $ + * $Date: 2000/01/05 11:22:21 $ * * This file is based on /plg/pisd/rdi.c, but instead of using RDP it uses * ADP messages. @@ -392,6 +392,7 @@ static void (*old_handler)(); #endif static bool boot_interrupted = FALSE; +static volatile bool interrupt_request = FALSE; static void ardi_sigint_handler(int sig) { #ifdef DEBUG @@ -401,6 +402,7 @@ static void ardi_sigint_handler(int sig) { IGNORE(sig); #endif boot_interrupted = TRUE; + interrupt_request = TRUE; #ifndef __unix signal(SIGINT, ardi_sigint_handler); #endif @@ -1306,7 +1308,6 @@ static int HandleStoppedMessage(Packet *packet, void *stateptr) { return RDIError_NoError; } -static volatile bool interrupt_request = FALSE; static void interrupt_target( void ) { @@ -1397,6 +1398,7 @@ static int angel_RDI_ExecuteOrStep(PointHandle *handle, word type, angel_DebugPrint("Waiting for program to finish...\n"); #endif + signal(SIGINT, ardi_sigint_handler); while( executing ) { if (interrupt_request) @@ -1406,6 +1408,8 @@ static int angel_RDI_ExecuteOrStep(PointHandle *handle, word type, } Adp_AsynchronousProcessing( async_block_on_nothing ); } + signal(SIGINT, SIG_IGN); + #ifdef TEST_DC_APPL Adp_Install_DC_Appl_Handler( NULL ); |