]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a const issue in r13154.
authorJulian Seward <jseward@acm.org>
Thu, 6 Dec 2012 18:23:20 +0000 (18:23 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 6 Dec 2012 18:23:20 +0000 (18:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13165

coregrind/m_debuginfo/readelf.c
coregrind/m_options.c
coregrind/pub_core_options.h

index 81300763aadd7aee8cdda9110499e4027dffd695..204af5569af9d579f324d696f9689191b7107991 100644 (file)
@@ -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;
 
index f2061c9040715cdd48ae92bc3efe8f8b05a2f090..54851a0f1d54476eb0b11a63157b1875674273df 100644 (file)
@@ -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
index 76af826b0de6c40056dcc201706274ca4d5455e0..36c5755b193327b5f5af42e5a807d1895e69194d 100644 (file)
@@ -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);