From ed3e2cfec298f2159407f5bff89681690a2da869 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 15 Jan 1998 20:33:03 +0000 Subject: [PATCH] Applied patch from Tony.Thompson@arm.com --- gdb/ChangeLog | 5 +++++ gdb/remote-rdi.c | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) 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) { -- 2.30.2