From: Nick Clifton Date: Thu, 15 Jan 1998 20:33:03 +0000 (+0000) Subject: Applied patch from Tony.Thompson@arm.com X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed3e2cfec298f2159407f5bff89681690a2da869;p=binutils-gdb.git Applied patch from Tony.Thompson@arm.com --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab10c928412..9529f17521a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 15 12:29:13 1998 Nick Clifton + + * remote-rdi.c (arm_rdi_open): Patch from Tony.Thompson@arm.com + to prevent spurous error messages on non-ICE targets. + start-sanitize-vr4111 Thu Jan 15 09:28:52 1998 Gavin Koch diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c index 19cedd312c5..6db42c15629 100644 --- a/gdb/remote-rdi.c +++ b/gdb/remote-rdi.c @@ -252,16 +252,29 @@ device is attached to the remote system (e.g. /dev/ttya)."); { printf_filtered ("RDI_info: %s\n", rdi_error_message (rslt)); } - rslt = angel_RDI_info (RDIInfo_Icebreaker, &arg1, &arg2); + + /* + ** There's no point asking if the target's an ICEBreaker, unless + ** you're going to do something with the answer. All it does is provoke + ** an error message on non-ICE targets + rslt = angel_RDI_info (RDIInfo_Icebreaker, & arg1, & arg2); if (rslt) { printf_filtered ("RDI_info: %s\n", rdi_error_message (rslt)); } - rslt = angel_RDI_info (RDIInfo_DownLoad, &arg1, &arg2); + */ + + /* + ** There's no point asking if the target can accept a configuration download, + ** unless you're going to do something with the answer. All it does is + ** provoke an error message on non-ICE targets + rslt = angel_RDI_info (RDIInfo_DownLoad, & arg1, & arg2); if (rslt) { printf_filtered ("RDI_info: %s\n", rdi_error_message (rslt)); } + */ + rslt = angel_RDI_info (RDIInfo_GetLoadSize, &arg1, &arg2); if (rslt) {