public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] fix register window
@ 2003-03-26 11:21 Martin M. Hunt
  0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2003-03-26 11:21 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

I've checked this in.  It fixes some bitrot that caused the register
window to stop working on x86 last week. All part of the continual
churning in GDB's internals that keeps us on our toes.

2003-03-24  Martin M. Hunt  <hunt@redhat.com>

	* generic/gdbtk-register.c (get_register_types): Use 
	register_type instead of REGISTER_VIRTUAL_TYPE.
	(get_register): Ditto.



[-- Attachment #2: p --]
[-- Type: text/x-patch, Size: 855 bytes --]

Index: generic/gdbtk-register.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v
retrieving revision 1.16
diff -u -u -r1.16 gdbtk-register.c
--- generic/gdbtk-register.c	17 Mar 2003 22:14:00 -0000	1.16
+++ generic/gdbtk-register.c	25 Mar 2003 01:03:03 -0000
@@ -215,7 +215,8 @@
   struct type *reg_vtype;
   int i,n;
 
-  reg_vtype = REGISTER_VIRTUAL_TYPE (regnum);
+  reg_vtype = register_type (current_gdbarch, regnum);
+  
   if (TYPE_CODE (reg_vtype) == TYPE_CODE_UNION)
     {
       n = TYPE_NFIELDS (reg_vtype);
@@ -278,8 +279,7 @@
   
   reg_vtype = regtype[regnum];
   if (reg_vtype == NULL)
-    reg_vtype = REGISTER_VIRTUAL_TYPE (regnum);
-
+    reg_vtype = register_type (current_gdbarch, regnum);
 
   if (!target_has_registers)
     {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-25  1:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-26 11:21 [patch] fix register window Martin M. Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).