]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
The XArray element type of variable "described" is HChar not UChar.
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 4 Oct 2014 21:08:42 +0000 (21:08 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 4 Oct 2014 21:08:42 +0000 (21:08 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14598

coregrind/m_debuginfo/debuginfo.c

index d081f27a7893ffe3348bcd3586e765a1034ee9a3..acc165a6b9f116c7fa6a21d8dfdbabc130d3294f 100644 (file)
@@ -3074,7 +3074,7 @@ static void format_message ( /*MOD*/XArray* /* of HChar */ dn1,
                              DiVariable* var,
                              PtrdiffT var_offset,
                              PtrdiffT residual_offset,
-                             XArray* /*UChar*/ described,
+                             XArray* /*HChar*/ described,
                              Int      frameNo, 
                              ThreadId tid )
 {
@@ -3102,7 +3102,7 @@ static void format_message ( /*MOD*/XArray* /* of HChar */ dn1,
    vg_assert(described);
    vg_assert(var && var->name);
    have_descr = VG_(sizeXA)(described) > 0
-                && *(UChar*)VG_(indexXA)(described,0) != '\0';
+                && *(HChar*)VG_(indexXA)(described,0) != '\0';
    have_srcloc = var->fndn_ix > 0 && var->lineNo > 0;
 
    tagL[0] = tagR[0] = xagL[0] = xagR[0] = 0;