From: Vladimir Prus Date: Mon, 4 Feb 2008 07:49:04 +0000 (+0000) Subject: * varobj.c (c_value_of_variable): Use xstrdup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c39c82565f3bf5a918aebbe329f66622e941e027;p=binutils-gdb.git * varobj.c (c_value_of_variable): Use xstrdup. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 626347167cc..8e06da09032 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-02-04 Vladimir Prus + + * varobj.c (c_value_of_variable): Use xstrdup. + 2008-02-04 Vladimir Prus Update stored rendition of varobj value when format changes. diff --git a/gdb/varobj.c b/gdb/varobj.c index 258e0bff255..223693180c7 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -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); } } }