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]

[patch] more REGISTER_CONVERTIBLE


This patch gets gdbtk to compile: it replaces some uses of
REGISTER_CONVERTIBLE and REGISTER_CONVERT_TO_VIRTUAL with their
deprecated counterparts.

Tested by compiling on i686-pc-linux-gnu, GCC 3.1, DWARF 2; committed
as obvious.

David Carlton
carlton@bactrian.org

2003-06-11  David Carlton  <carlton@bactrian.org>

	* generic/gdbtk-register.c (get_register): REGISTER_CONVERTIBLE
	and REGISTER_CONVERT_TO_VIRTUAL are deprecated.

Index: gdbtk-register.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v
retrieving revision 1.18
diff -u -p -r1.18 gdbtk-register.c
--- gdbtk-register.c	8 May 2003 23:30:51 -0000	1.18
+++ gdbtk-register.c	11 Jun 2003 21:51:23 -0000
@@ -301,9 +301,9 @@ get_register (int regnum, void *arg)
     }
 
   /* Convert raw data to virtual format if necessary.  */
-  if (REGISTER_CONVERTIBLE (regnum))
+  if (DEPRECATED_REGISTER_CONVERTIBLE (regnum))
     {
-      REGISTER_CONVERT_TO_VIRTUAL (regnum, reg_vtype,
+      DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum, reg_vtype,
       				   raw_buffer, virtual_buffer);
     }
   else


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