This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"No registers" error on connecting to MIPS LSI PMON target


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]