* varobj.c (c_value_of_variable): Use xstrdup.
This commit is contained in:
parent
3802b2dd6b
commit
c39c82565f
@ -1,3 +1,7 @@
|
||||
2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
* varobj.c (c_value_of_variable): Use xstrdup.
|
||||
|
||||
2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
Update stored rendition of varobj value when format changes.
|
||||
|
@ -2252,7 +2252,7 @@ c_value_of_variable (struct varobj *var)
|
||||
|
||||
gdb_assert (varobj_value_is_changeable_p (var));
|
||||
gdb_assert (!value_lazy (var->value));
|
||||
return strdup (var->print_value);
|
||||
return xstrdup (var->print_value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user