This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[1/2] constify SYMBOL_VALUE_BYTES
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 09 Apr 2013 13:59:02 -0600
- Subject: [1/2] constify SYMBOL_VALUE_BYTES
This patch is just a small bit of preparation for the next one.
It makes SYMBOL_VALUE_BYTES 'const'.
Tested by rebuilding.
Tom
* symtab.h (struct general_symbol_info) <value.bytes>: Make const.
---
gdb/symtab.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 29a12ff..c735e16 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -116,7 +116,7 @@ struct general_symbol_info
struct block *block;
- gdb_byte *bytes;
+ const gdb_byte *bytes;
CORE_ADDR address;
--
1.8.1.4