From 981b99faf208e2c7f6e2b83d73e1b89b669112ee Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 10 Aug 1999 16:41:44 +0000 Subject: Patch from Eric Valette and Emmanuel Raguet : - the dec21140 driver code has been hardened (various bug fixed) Emmanuel, - bug in the mcp750 init code have been fixed (interrupt stack/initial stack initialization), BSS correctly cleared (Eric V) - remote debugging over TCP/IP is nearly complete (berakpoints, backtrace, variables,...) (Eric V), - exception handling code has also been improved in order to fully support RDBG requirements (Eric V), --- c/src/librdbg/src/ptrace.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'c/src/librdbg/src/ptrace.c') diff --git a/c/src/librdbg/src/ptrace.c b/c/src/librdbg/src/ptrace.c index 158bd57cbb..91772bb2bd 100644 --- a/c/src/librdbg/src/ptrace.c +++ b/c/src/librdbg/src/ptrace.c @@ -5,6 +5,8 @@ * * Synopsis = rkdb/rkdb.c * + * $Id$ + * ************************************************************************** */ @@ -142,7 +144,7 @@ ptrace (int request, int pid, char* addr, int data, char* addr2) */ if (diag == 0) { - copyback_data_cache_and_invalidate_instr_cache(); + copyback_data_cache_and_invalidate_instr_cache(addr, sizeof data); return 0; } goto mem_error; @@ -162,11 +164,7 @@ ptrace (int request, int pid, char* addr, int data, char* addr2) ctx = GetExceptCtx (currentTargetThread); - if ( - ctx->ctx->idtIndex != I386_EXCEPTION_DEBUG && - ctx->ctx->idtIndex != I386_EXCEPTION_BREAKPOINT && - ctx->ctx->idtIndex != I386_EXCEPTION_ENTER_RDBG - ) { + if (!isRdbgException(ctx)) { CannotRestart = 1; setErrno (EIO); return -1; -- cgit v1.2.3