/* Functions that provide the mechanism to parse a syscall XML file
and get its values.
- Copyright (C) 2009-2014 Free Software Foundation, Inc.
+ Copyright (C) 2009-2015 Free Software Foundation, Inc.
This file is part of GDB.
static void
free_syscalls_info (void *arg)
{
- struct syscalls_info *syscalls_info = arg;
+ struct syscalls_info *syscalls_info = (struct syscalls_info *) arg;
struct syscall_desc *sysdesc;
int i;
const struct gdb_xml_element *element,
void *user_data, VEC(gdb_xml_value_s) *attributes)
{
- struct syscall_parsing_data *data = user_data;
+ struct syscall_parsing_data *data = (struct syscall_parsing_data *) user_data;
struct gdb_xml_value *attrs = VEC_address (gdb_xml_value_s, attributes);
int len, i;
/* syscall info. */
for (i = 0; i < len; i++)
{
if (strcmp (attrs[i].name, "name") == 0)
- name = attrs[i].value;
+ name = (char *) attrs[i].value;
else if (strcmp (attrs[i].name, "number") == 0)
number = * (ULONGEST *) attrs[i].value;
else
return NULL;
nsyscalls = VEC_length (syscall_desc_p, syscalls_info->syscalls);
- names = xmalloc ((nsyscalls + 1) * sizeof (char *));
+ names = XNEWVEC (const char *, nsyscalls + 1);
for (i = 0;
VEC_iterate (syscall_desc_p, syscalls_info->syscalls, i, sysdesc);