This is the mail archive of the gdb-prs@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]

mi/1770: -data-list-register-values says invalid register (PSEUDO_REGS ignored)


>Number:         1770
>Category:       mi
>Synopsis:       -data-list-register-values says invalid register (PSEUDO_REGS ignored)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 02 19:28:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     set@users.sf.net
>Release:        6.1.1 also CVS 20040902
>Organization:
>Environment:
IA32 (x86) CPUs
>Description:
-data-list-register-names reports the names for the "pseudo registers". But when you ask for the value of a "pseudo register" you get an error about invalid register.
This missmatch is a big problem when a frontend tries to find the names of all the registers and then its values.
>How-To-Repeat:
Just try  -data-list-register-names for all and then try to get the value for the last one in the list.
>Fix:
ndex: gdb/mi/mi-main.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-main.c,v
retrieving revision 1.64
diff -u -r1.64 mi-main.c
--- gdb/mi/mi-main.c    3 Aug 2004 00:57:27 -0000       1.64
+++ gdb/mi/mi-main.c    25 Aug 2004 14:12:50 -0000
@@ -423,7 +423,7 @@
      case, some entries of REGISTER_NAME will change depending upon
      the particular processor being debugged.  */
 
-  numregs = NUM_REGS;
+  numregs = NUM_REGS + NUM_PSEUDO_REGS;
 
   if (argc == 0)
     {
>Release-Note:
>Audit-Trail:
>Unformatted:


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