[OBV PATCH] Move comment back into correct place.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OBV PATCH] Move comment back into correct place.

Andrew Burgess-3
The comment for the variable old_regs in gdbtk-register.c had come
unstuck.  I've moved it back into place.

Hope this is ok to commit as obvious.

thanks,
Andrew

2013-09-05  Andrew Burgess  <[hidden email]>

        * generic/gdbk-register.c (old_regs): Move the comment about this
        variable next to the definition.

Index: ./gdb/gdbtk/generic/gdbtk-register.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-register.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -p -r1.47 -r1.48
--- ./gdb/gdbtk/generic/gdbtk-register.c 15 Jul 2013 07:42:21 -0000 1.47
+++ ./gdb/gdbtk/generic/gdbtk-register.c 5 Sep 2013 13:14:28 -0000 1.48
@@ -43,11 +43,6 @@ typedef union
 /* Type of our mapping functions */
 typedef void (*map_func)(int, map_arg);
 
-/* This contains the previous values of the registers, since the last call to
-   gdb_changed_register_list.
-
-   It is an array of (NUM_REGS+NUM_PSEUDO_REGS)*MAX_REGISTER_RAW_SIZE bytes. */
-
 static int gdb_register_info (ClientData, Tcl_Interp *, int, Tcl_Obj **);
 static void get_register (int, map_arg);
 static void get_register_name (int, map_arg);
@@ -62,6 +57,11 @@ static int gdb_reggrouplist (ClientData,
 
 static void get_register_types (int regnum, map_arg);
 
+/* This contains the previous values of the registers, since the last call to
+   gdb_changed_register_list.
+
+   It is an array of (NUM_REGS+NUM_PSEUDO_REGS)*MAX_REGISTER_RAW_SIZE bytes. */
+
 static char *old_regs = NULL;
 static int *regformat = (int *)NULL;
 static struct type **regtype = (struct type **)NULL;