diff options
author | Sergio Durigan Junior <sergiodj@redhat.com> | 2009-10-31 06:00:13 +0000 |
---|---|---|
committer | Sergio Durigan Junior <sergiodj@redhat.com> | 2009-10-31 06:00:13 +0000 |
commit | bccd0dd2032230e7de132f82840d21a359927e2a (patch) | |
tree | bb5686df578fa7be914c21c3622ed94f1dccfc54 /gdb/breakpoint.c | |
parent | ebd95253ac689caf2e6b2d2155b544633d293c88 (diff) | |
download | gdb-bccd0dd2032230e7de132f82840d21a359927e2a.zip gdb-bccd0dd2032230e7de132f82840d21a359927e2a.tar.gz gdb-bccd0dd2032230e7de132f82840d21a359927e2a.tar.bz2 |
gdb/ChangeLog:
2009-31-10 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
* breakpoint.c (catch_syscall_split_args): Remove unecessary warning
displayed when the user provided a syscall name and there is no
XML support.
* xml-syscall.c: Renamed `_sysinfo' to `sysinfo'.
(set_xml_syscall_file_name): Remove syscall_warn_user.
(xml_init_syscalls_info): Remove warning.
(init_sysinfo): Update warnings.
gdb/testsuite/ChangeLog:
2009-31-10 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
* gdb.base/catch-syscall.exp: Adapt the testcase in order to accept
the modified warnings for catch syscall. Verify if GDB was compiled
with support for lib expat, and choose which tests to run depending
on this.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index cf11f51..6bf9262 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -7804,17 +7804,7 @@ catch_syscall_split_args (char *arg) /* Check if the user provided a syscall name or a number. */ syscall_number = (int) strtol (cur_name, &endptr, 0); if (*endptr == '\0') - { - get_syscall_by_number (syscall_number, &s); - - if (s.name == NULL) - /* We can issue just a warning, but still create the catchpoint. - This is because, even not knowing the syscall name that - this number represents, we can still try to catch the syscall - number. */ - warning (_("The number '%d' does not represent a known syscall."), - syscall_number); - } + get_syscall_by_number (syscall_number, &s); else { /* We have a name. Let's check if it's valid and convert it |