From c39c82565f3bf5a918aebbe329f66622e941e027 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 4 Feb 2008 07:49:04 +0000 Subject: [PATCH] * varobj.c (c_value_of_variable): Use xstrdup. --- gdb/ChangeLog | 4 ++++ gdb/varobj.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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); } } } -- 2.30.2