From: Julian Seward Date: Thu, 6 Dec 2012 18:23:20 +0000 (+0000) Subject: Fix a const issue in r13154. X-Git-Tag: svn/VALGRIND_3_9_0~507 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e1f44be3aad97136ef2af89b30c9d19313f7c41;p=thirdparty%2Fvalgrind.git Fix a const issue in r13154. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13165 --- diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 81300763aa..204af5569a 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -1216,7 +1216,7 @@ void find_debug_file( struct _DebugInfo* di, /*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; diff --git a/coregrind/m_options.c b/coregrind/m_options.c index f2061c9040..54851a0f1d 100644 --- a/coregrind/m_options.c +++ b/coregrind/m_options.c @@ -79,7 +79,7 @@ Int VG_(clo_n_suppressions) = 0; 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 diff --git a/coregrind/pub_core_options.h b/coregrind/pub_core_options.h index 76af826b0d..36c5755b19 100644 --- a/coregrind/pub_core_options.h +++ b/coregrind/pub_core_options.h @@ -127,7 +127,7 @@ extern Int VG_(clo_n_fullpath_after); 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);