Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: gdb/xml-syscall.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/xcoffsolib.c ('k') | gdb/xstormy16-tdep.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Functions that provide the mechanism to parse a syscall XML file 1 /* Functions that provide the mechanism to parse a syscall XML file
2 and get its values. 2 and get its values.
3 3
4 Copyright (C) 2009-2012 Free Software Foundation, Inc. 4 Copyright (C) 2009-2012 Free Software Foundation, Inc.
5 5
6 This file is part of GDB. 6 This file is part of GDB.
7 7
8 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or 10 the Free Software Foundation; either version 3 of the License, or
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 for (i = 0; 145 for (i = 0;
146 VEC_iterate (syscall_desc_p, sysinfo->syscalls, i, sysdesc); 146 VEC_iterate (syscall_desc_p, sysinfo->syscalls, i, sysdesc);
147 i++) 147 i++)
148 sysinfo_free_syscalls_desc (sysdesc); 148 sysinfo_free_syscalls_desc (sysdesc);
149 VEC_free (syscall_desc_p, sysinfo->syscalls); 149 VEC_free (syscall_desc_p, sysinfo->syscalls);
150 150
151 xfree (sysinfo); 151 xfree (sysinfo);
152 } 152 }
153 153
154 struct cleanup * 154 static struct cleanup *
155 make_cleanup_free_syscalls_info (struct syscalls_info *sysinfo) 155 make_cleanup_free_syscalls_info (struct syscalls_info *sysinfo)
156 { 156 {
157 return make_cleanup (free_syscalls_info, sysinfo); 157 return make_cleanup (free_syscalls_info, sysinfo);
158 } 158 }
159 159
160 static void 160 static void
161 syscall_create_syscall_desc (struct syscalls_info *sysinfo, 161 syscall_create_syscall_desc (struct syscalls_info *sysinfo,
162 const char *name, int number) 162 const char *name, int number)
163 { 163 {
164 struct syscall_desc *sysdesc = XZALLOC (struct syscall_desc); 164 struct syscall_desc *sysdesc = XZALLOC (struct syscall_desc);
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 const char ** 410 const char **
411 get_syscall_names (void) 411 get_syscall_names (void)
412 { 412 {
413 init_sysinfo (); 413 init_sysinfo ();
414 414
415 return xml_list_of_syscalls (sysinfo); 415 return xml_list_of_syscalls (sysinfo);
416 } 416 }
417 417
418 #endif /* ! HAVE_LIBEXPAT */ 418 #endif /* ! HAVE_LIBEXPAT */
OLDNEW
« no previous file with comments | « gdb/xcoffsolib.c ('k') | gdb/xstormy16-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698