From 2ae2a0b7f1515ed92ed1dbd071af7856a6061242 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Wed, 31 Mar 2010 14:36:41 +0000 Subject: * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. --- gdb/ChangeLog | 4 ++++ gdb/remote.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 491326c..00092e8b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-03-31 Pierre Muller + + * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. + 2010-03-30 Keith Seitz * c-typeprint.c (c_type_print_args): Don't print "void" diff --git a/gdb/remote.c b/gdb/remote.c index 03644d1..395a56d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2450,7 +2450,7 @@ end_thread (struct gdb_xml_parser *parser, struct threads_parsing_context *data = user_data; if (body_text && *body_text) - VEC_last (thread_item_t, data->items)->extra = strdup (body_text); + VEC_last (thread_item_t, data->items)->extra = xstrdup (body_text); } const struct gdb_xml_attribute thread_attributes[] = { -- cgit v1.1