From c39c82565f3bf5a918aebbe329f66622e941e027 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 4 Feb 2008 07:49:04 +0000 Subject: * varobj.c (c_value_of_variable): Use xstrdup. --- gdb/ChangeLog | 4 ++++ gdb/varobj.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6263471..8e06da0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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. * varobj.c (varobj_set_display_format): Recomputed print_value. diff --git a/gdb/varobj.c b/gdb/varobj.c index 258e0bf..2236931 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); } } } -- cgit v1.1