| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 */ |
| OLD | NEW |