Followup to constification of VEX's external interface (VEX r2555).
authorflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Sun, 21 Oct 2012 02:19:35 +0000 (02:19 +0000)
committerflorian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Sun, 21 Oct 2012 02:19:35 +0000 (02:19 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13066 a5019735-40e9-0310-863c-91ae7b9d1cf9

coregrind/m_scheduler/scheduler.c
memcheck/mc_translate.c

index 60892b95c52ee100d2d1d1f96cd905287bb909ed..75f28b22ffbb7cc914906ac7ba9700864c4b350f 100644 (file)
@@ -1373,7 +1373,7 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid )
          static Int  counts[EmNote_NUMBER];
          static Bool counts_initted = False;
          VexEmNote ew;
-         HChar*    what;
+         const HChar* what;
          Bool      show;
          Int       q;
          if (!counts_initted) {
@@ -1399,7 +1399,7 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid )
 
       case VEX_TRC_JMP_EMFAIL: {
          VexEmNote ew;
-         HChar*    what;
+         const HChar* what;
          ew   = (VexEmNote)VG_(threads)[tid].arch.vex.guest_EMNOTE;
          what = (ew < 0 || ew >= EmNote_NUMBER)
                    ? "unknown (?!)"
index 1c2f1d4c65dd281d40e5e68fc3c8ab5cf3096a92..6dcced38974a724567a2b3695e72e28f779de222 100644 (file)
@@ -5691,7 +5691,7 @@ Bool check_or_add ( XArray* /*of Pair*/ pairs, IRExpr* guard, void* entry )
    return False;
 }
 
-static Bool is_helperc_value_checkN_fail ( HChar* name )
+static Bool is_helperc_value_checkN_fail ( const HChar* name )
 {
    return
       0==VG_(strcmp)(name, "MC_(helperc_value_check0_fail_no_o)")