From e9277ae8d4b8ae0b5c03c0b6f71beebb88031e23 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 9 Feb 2000 03:06:33 +0000 Subject: [PATCH] From JTC: m32r-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception): Return E01 instead of P01 when 'P' command fails. --- gdb/ChangeLog | 5 +++++ gdb/m32r-stub.c | 2 +- gdb/sparcl-stub.c | 3 ++- gdb/sparclet-stub.c | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 38e2ca3655..57a6274e24 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +1999-10-18 J.T. Conklin + + * m32r-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception): + Return E01 instead of P01 when 'P' command fails. + 2000-02-05 J.T. Conklin * remote.c (putpkt_binary): Handle NAK from target stub. diff --git a/gdb/m32r-stub.c b/gdb/m32r-stub.c index dcbdbbb098..9fdf4969e5 100644 --- a/gdb/m32r-stub.c +++ b/gdb/m32r-stub.c @@ -425,7 +425,7 @@ handle_exception(int exceptionVector) strcpy (remcomOutBuffer, "OK"); break; } - strcpy (remcomOutBuffer, "P01"); + strcpy (remcomOutBuffer, "E01"); break; } case 'G': /* set the value of the CPU registers - return OK */ diff --git a/gdb/sparcl-stub.c b/gdb/sparcl-stub.c index dbdf6d44c1..111dfe781f 100644 --- a/gdb/sparcl-stub.c +++ b/gdb/sparcl-stub.c @@ -50,6 +50,7 @@ * * g return the value of the CPU registers hex data or ENN * G set the value of the CPU registers OK or ENN + * P set the value of a single CPU register OK or ENN * * mAA..AA,LLLL Read LLLL bytes at address AA..AA hex data or ENN * MAA..AA,LLLL: Write LLLL bytes at address AA.AA OK or ENN @@ -831,7 +832,7 @@ handle_exception (registers) hex2mem (ptr, (char *)®isters[regno], 4, 0); else { - strcpy (remcomOutBuffer, "P01"); + strcpy (remcomOutBuffer, "E01"); break; } } diff --git a/gdb/sparclet-stub.c b/gdb/sparclet-stub.c index 4d859f9b74..281ce14195 100644 --- a/gdb/sparclet-stub.c +++ b/gdb/sparclet-stub.c @@ -50,7 +50,7 @@ * * g return the value of the CPU registers hex data or ENN * G set the value of the CPU registers OK or ENN - * P set the value of a single CPU register OK or P01 (???) + * P set the value of a single CPU register OK or ENN * * mAA..AA,LLLL Read LLLL bytes at address AA..AA hex data or ENN * MAA..AA,LLLL: Write LLLL bytes at address AA.AA OK or ENN @@ -938,7 +938,7 @@ handle_exception (registers) hex2mem (ptr, (char *)®isters[regno], 4, 0); else { - strcpy (remcomOutBuffer, "P01"); + strcpy (remcomOutBuffer, "E01"); break; } }