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/17] make minimal_symbol::filename const


A trivial one.  I will probably just put it in.

Tom

>From b55004266b08d366607a719a34596d3c22065b4a Mon Sep 17 00:00:00 2001
From: Tom Tromey <tromey@redhat.com>
Date: Fri, 9 Dec 2011 08:42:09 -0700
Subject: [PATCH 01/18] make minimal_symbol::filename const

	* symtab.h (struct minimal_symbol) <filename>: Now const.
---
 gdb/symtab.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/symtab.h b/gdb/symtab.h
index 7b52c88..643c0e7 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -347,7 +347,7 @@ struct minimal_symbol
   unsigned long size;
 
   /* Which source file is this symbol in?  Only relevant for mst_file_*.  */
-  char *filename;
+  const char *filename;
 
   /* Classification type for this minimal symbol.  */
 
-- 
1.7.6.4


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