2011-03-04 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 4 Mar 2011 21:55:45 +0000 (21:55 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 4 Mar 2011 21:55:45 +0000 (21:55 +0000)
* xml-syscall.c (syscall_start_syscall): Assert name is non null.

gdb/ChangeLog
gdb/xml-syscall.c

index f2508294abda9ddf8706320b41031f7c33e12da0..1fdb680e3ccbe42d598e8458da6b27b2be45400c 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-04  Michael Snyder  <msnyder@vmware.com>
+
+       * xml-syscall.c (syscall_start_syscall): Assert name is non null.
+
 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * eval.c (parse_and_eval_address_1): Remove function.
index 271b2400670893f8cf1e8d19e44a8e7f3e43c1e1..369fb73058b6e1f9ecd0c02a0d937f5041e7bf1c 100644 (file)
@@ -195,6 +195,7 @@ syscall_start_syscall (struct gdb_xml_parser *parser,
                         _("Unknown attribute name '%s'."), attrs[i].name);
     }
 
+  gdb_assert (name);
   syscall_create_syscall_desc (data->sysinfo, name, number);
 }