X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fxml-syscall.c;h=751de7f42cb8ec0c08c98d5aeb85c5194b98be91;hb=45a466b578083a05f1138eff9232254b1a30f683;hp=271b2400670893f8cf1e8d19e44a8e7f3e43c1e1;hpb=efc0eabd6019406ff92286a36713d41a42515e09;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c index 271b240067..751de7f42c 100644 --- a/gdb/xml-syscall.c +++ b/gdb/xml-syscall.c @@ -1,7 +1,7 @@ /* Functions that provide the mechanism to parse a syscall XML file and get its values. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009-2013 Free Software Foundation, Inc. This file is part of GDB. @@ -151,7 +151,7 @@ free_syscalls_info (void *arg) xfree (sysinfo); } -struct cleanup * +static struct cleanup * make_cleanup_free_syscalls_info (struct syscalls_info *sysinfo) { return make_cleanup (free_syscalls_info, sysinfo); @@ -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); } @@ -280,7 +281,7 @@ static void init_sysinfo (void) { /* Should we re-read the XML info for this target? */ - if (my_gdb_datadir && strcmp (my_gdb_datadir, gdb_datadir) != 0) + if (my_gdb_datadir && filename_cmp (my_gdb_datadir, gdb_datadir) != 0) { /* The data-directory changed from the last time we used it. It means that we have to re-read the XML info. */