|
From: <sv...@va...> - 2012-12-06 18:23:28
|
sewardj 2012-12-06 18:23:20 +0000 (Thu, 06 Dec 2012)
New Revision: 13165
Log:
Fix a const issue in r13154.
Modified files:
trunk/coregrind/m_debuginfo/readelf.c
trunk/coregrind/m_options.c
trunk/coregrind/pub_core_options.h
Modified: trunk/coregrind/pub_core_options.h (+1 -1)
===================================================================
--- trunk/coregrind/pub_core_options.h 2012-12-06 18:08:54 +00:00 (rev 13164)
+++ trunk/coregrind/pub_core_options.h 2012-12-06 18:23:20 +00:00 (rev 13165)
@@ -127,7 +127,7 @@
extern const HChar* VG_(clo_fullpath_after)[VG_CLO_MAX_FULLPATH_AFTER];
/* Full path to additional path to search for debug symbols */
-extern HChar* VG_(clo_extra_debuginfo_path);
+extern const HChar* VG_(clo_extra_debuginfo_path);
/* DEBUG: print generated code? default: 00000000 ( == NO ) */
extern UChar VG_(clo_trace_flags);
Modified: trunk/coregrind/m_debuginfo/readelf.c (+1 -1)
===================================================================
--- trunk/coregrind/m_debuginfo/readelf.c 2012-12-06 18:08:54 +00:00 (rev 13164)
+++ trunk/coregrind/m_debuginfo/readelf.c 2012-12-06 18:23:20 +00:00 (rev 13165)
@@ -1216,7 +1216,7 @@
/*OUT*/SizeT* n_dimage )
{
HChar* debugpath = NULL;
- HChar* extrapath = VG_(clo_extra_debuginfo_path);
+ const HChar* extrapath = VG_(clo_extra_debuginfo_path);
Addr addr = 0;
UWord size = 0;
Modified: trunk/coregrind/m_options.c (+1 -1)
===================================================================
--- trunk/coregrind/m_options.c 2012-12-06 18:08:54 +00:00 (rev 13164)
+++ trunk/coregrind/m_options.c 2012-12-06 18:23:20 +00:00 (rev 13165)
@@ -79,7 +79,7 @@
const HChar* VG_(clo_suppressions)[VG_CLO_MAX_SFILES];
Int VG_(clo_n_fullpath_after) = 0;
const HChar* VG_(clo_fullpath_after)[VG_CLO_MAX_FULLPATH_AFTER];
-HChar* VG_(clo_extra_debuginfo_path) = NULL;
+const HChar* VG_(clo_extra_debuginfo_path) = NULL;
UChar VG_(clo_trace_flags) = 0; // 00000000b
UChar VG_(clo_profile_flags) = 0; // 00000000b
Int VG_(clo_trace_notbelow) = -1; // unspecified
|