This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0/3] catch syscall -- try 5 -- Introduction


I got it because:
#ifndef HAVE_LIBEXPAT

/* Dummy functions to indicate that there's no support for fetching
   syscalls information.  */

static void
syscall_warn_user (void)
{
  static int have_warned = 0;
  if (!have_warned)
    {
      have_warned = 1;
      warning (_("Can not parse XML syscalls information; XML support was "
		 "disabled at compile time."));
    }
}

const struct syscalls_info *
xml_init_syscalls_info (const char *filename)
{
  syscall_warn_user ();
  return NULL;
}

int
xml_get_syscall_number (const struct syscalls_info *sysinfo,
                        const char *syscall_name)
{
  syscall_warn_user ();
  return UNKNOWN_SYSCALL;
}

const char *
xml_get_syscall_name (const struct syscalls_info *sysinfo,
                      int syscall_number)
{
  syscall_warn_user ();
  return NULL;
}

int
xml_number_of_syscalls (const struct syscalls_info *sysinfo)
{
  syscall_warn_user ();
  return 0;
}

const char **
xml_list_of_syscalls (const struct syscalls_info *sysinfo)
{
  syscall_warn_user ();
  return NULL;
}

#else /* ! HAVE_LIBEXPAT */

That is why I got this error.  I don't have LIBEXPAT.  Are you sure I
got a error is a right way?


Thanks,
Hui




2009/4/23 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>:
> Hi Hui,
>
> On Thu, 2009-04-23 at 19:49 +0800, Hui Zhu wrote:
>> I got:
>
> You must apply all the 3 patches in order to compile and use the
> feature.
>
> Thanks,
>
> --
> Sérgio Durigan Júnior
> Linux on Power Toolchain - Software Engineer
> Linux Technology Center - LTC
> IBM Brazil
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]