This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: constify aop_map::name
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 16 Feb 2011 14:01:09 -0700
- Subject: 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