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]

[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


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