]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
authorPierre Muller <muller@sourceware.org>
Wed, 31 Mar 2010 14:36:41 +0000 (14:36 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 31 Mar 2010 14:36:41 +0000 (14:36 +0000)
gdb/ChangeLog
gdb/remote.c

index 491326cdb28fe52f0a19b386e04dcfc644b4aaa7..00092e8bb2787f8ff385843b7a8c69fc4ed93c6a 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
+
 2010-03-30  Keith Seitz  <keiths@redhat.com>
 
        * c-typeprint.c (c_type_print_args): Don't print "void"
index 03644d1dc79c1925c9da893392d8d444bb615a46..395a56db777ea3d5da5e899c89376608d7f836e6 100644 (file)
@@ -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[] = {