aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
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/varobj.c
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/varobj.c')
-rw-r--r--gdb/varobj.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}