aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-02-04 07:49:04 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-02-04 07:49:04 +0000
commitc39c82565f3bf5a918aebbe329f66622e941e027 (patch)
tree3d733ce622c724b91a7a9f9d2c597e3a3004df59 /gdb
parent3802b2dd6b937e2904b6e2de087e224437eab493 (diff)
downloadgdb-c39c82565f3bf5a918aebbe329f66622e941e027.zip
gdb-c39c82565f3bf5a918aebbe329f66622e941e027.tar.gz
gdb-c39c82565f3bf5a918aebbe329f66622e941e027.tar.bz2
* varobj.c (c_value_of_variable): Use xstrdup.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/varobj.c2
2 files changed, 5 insertions, 1 deletions
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 <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.
* 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);
}
}
}