From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25910 invoked by alias); 8 Oct 2003 10:45:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25902 invoked from network); 8 Oct 2003 10:45:08 -0000 Received: from unknown (HELO topsns.toshiba-tops.co.jp) (202.230.225.5) by sources.redhat.com with SMTP; 8 Oct 2003 10:45:08 -0000 Received: from no.name.available by topsns.toshiba-tops.co.jp via smtpd (for sources.redhat.com [67.72.78.213]) with SMTP; 8 Oct 2003 10:45:07 UT Received: from localhost (fragile [172.17.28.65]) by srd2sd.toshiba-tops.co.jp (8.12.9/8.12.9) with ESMTP id h98Aj5gc031606; Wed, 8 Oct 2003 19:45:05 +0900 (JST) (envelope-from anemo@mba.ocn.ne.jp) Date: Wed, 08 Oct 2003 10:45:00 -0000 Message-Id: <20031008.194759.74756454.nemoto@toshiba-tops.co.jp> To: gdb-patches@sources.redhat.com Subject: "No registers" error on connecting to MIPS LSI PMON target From: Atsushi Nemoto X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00204.txt.bz2 I tried to use gdb-6.0 for remote-debugging with MIPS LSI PMON. I got a message "No registers." on "target lsi /dev/ttyS0" command. I think this is because get_selected_frame() is called BEFORE the correct target_ops is installed by push_target(). This is a temporary patch. It seems to work, but I can not tell the situation mentioned in the "FIXME" comment is really solved or not. --- gdb-6.0/gdb/remote-mips.c.org Wed Jun 11 22:16:28 2003 +++ gdb-6.0/gdb/remote-mips.c Wed Oct 8 16:55:19 2003 @@ -1494,10 +1494,12 @@ the request itself succeeds or fails. */ mips_request ('r', 0, 0, &err, mips_receive_wait, NULL); +#if 0 /* FIXME: cagney/2002-11-29: Force the update of selected frame. This shouldn't be necessary, only many many places still refer to selected_frame directly (instead of using get_selected_frame(). */ get_selected_frame (); /* Hack!!! */ +#endif } /* Open a connection to the remote board. */ --- Atsushi Nemoto