This is the mail archive of the gdb-patches@sourceware.org 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]

FYI: constify aop_map::name


I'm checking this in.

While digging into some agent expression code I noticed that
aop_map::name is not const, but should be.

Tested by building gdb.

Tom

2011-02-16  Tom Tromey  <tromey@redhat.com>

	* ax.h (struct aop_map) <name>: Now const.

Index: ax.h
===================================================================
RCS file: /cvs/src/src/gdb/ax.h,v
retrieving revision 1.14
diff -u -r1.14 ax.h
--- ax.h	1 Jan 2011 15:32:57 -0000	1.14
+++ ax.h	16 Feb 2011 20:51:36 -0000
@@ -274,7 +274,7 @@
 
     /* The name of the opcode.  Null means that this entry is not a
        valid opcode --- a hole in the opcode space.  */
-    char *name;
+    const char *name;
 
     /* All opcodes take no operands from the bytecode stream, or take
        unsigned integers of various sizes.  If this is a positive number


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