binutils-gdb/gdb/syscalls/sparc64-linux.xml
Gabriel Krisman Bertazi e34879080d Implement catch syscall group
Implement support to add catchpoints for a group of related syscalls
using the syntax:

(gdb) catch syscall group:<group>
or
(gdb) catch syscall g:<group>

Several groups are predefined in the xml files for all architectures
supported by GDB over Linux.  They are based on the groups defined by
strace.

gdb/

	* xml-syscall.c (get_syscalls_by_group): New.
	(get_syscall_group_names): New.
	(struct syscall_group_desc): New structure to store group data.
	(struct syscalls_info): Include field to store the group list.
	(sysinfo_free_syscall_group_desc): New.
	(free_syscalls_info): Free group list.
	(syscall_group_create_syscall_group_desc): New.
	(syscall_group_add_syscall): New.
	(syscall_create_syscall_desc): Add syscall to its groups.
	(syscall_start_syscall): Load group attribute.
	(syscall_group_get_group_by_name): New.
	(xml_list_syscalls_by_group): New.
	(xml_list_of_groups): New.
	* xml-syscall.h (get_syscalls_by_group): Export function
	to retrieve a list of syscalls filtered by the group name.
	(get_syscall_group_names): Export function to retrieve the list
	of syscall groups.
	* break-catch-syscall.c (catch_syscall_split_args): Verify if
	argument is a syscall group and expand it to a list of syscalls
	when creating catchpoints.
	(catch_syscall_completer): Add word completion for system call
	groups.
	* configure.ac: Include dependency for xsltproc when building
	in maintainer-mode.
	* break-catch-syscall.c (_initialize_breakpoint): Update catch
	syscall command documentation.
	* NEWS: Include section about catching groups of syscalls.
	* configure: Regenerate.
	* data-directory/Makefile.in: Generate syscall xml when building
	in maintainer mode.
	* syscalls/gdb-syscalls.dtd: Include group attribute to the
	syscall element.
	* syscalls/apply-defaults.xsl: New.
	* syscalls/linux-defaults.xml.in: New.
	* syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
	* syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
	* syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
	* syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
	* syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
	* syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
	* syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
	* syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
	* syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
	* syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
	* syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
	* syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
	* syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
	* syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
	* syscalls/aarch64-linux.xml: Regenerate.
	* syscalls/amd64-linux.xml: Regenerate.
	* syscalls/arm-linux.xml: Regenerate.
	* syscalls/i386-linux.xml: Regenerate.
	* syscalls/mips-n32-linux.xml: Regenerate.
	* syscalls/mips-n64-linux.xml: Regenerate.
	* syscalls/mips-o32-linux.xml: Regenerate.
	* syscalls/ppc-linux.xml: Regenerate.
	* syscalls/ppc64-linux.xml: Regenerate.
	* syscalls/s390-linux.xml: Regenerate.
	* syscalls/s390x-linux.xml: Regenerate.
	* syscalls/sparc-linux.xml: Regenerate.
	* syscalls/sparc64-linux.xml: Regenerate.

gdb/testsuite/

	* gdb.base/catch-syscall.exp (do_syscall_tests): Add call
	to test_catch_syscall_group.
	(test_catch_syscall_group): New.

gdb/doc/

	* gdb.texinfo (Set Catchpoints): Add 'group' argument to catch
	syscall.
2016-07-23 18:38:24 -03:00

324 lines
17 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE syscalls_info SYSTEM "gdb-syscalls.dtd">
<!-- Copyright (C) 2010-2016 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. -->
<!-- This file was generated using the following file:
/usr/src/linux/arch/sparc/include/asm/unistd.h
The file mentioned above belongs to the Linux Kernel. -->
<syscalls_info>
<syscall name="restart_syscall" number="0"/>
<syscall name="exit" number="1" groups="process"/>
<syscall name="fork" number="2" groups="process"/>
<syscall name="read" number="3" groups="descriptor"/>
<syscall name="write" number="4" groups="descriptor"/>
<syscall name="open" number="5" groups="descriptor,file"/>
<syscall name="close" number="6" groups="descriptor"/>
<syscall name="wait4" number="7" groups="process"/>
<syscall name="creat" number="8" groups="descriptor,file"/>
<syscall name="link" number="9" groups="file"/>
<syscall name="unlink" number="10" groups="file"/>
<syscall name="execv" number="11" groups="file,process"/>
<syscall name="chdir" number="12" groups="file"/>
<syscall name="chown" number="13" groups="file"/>
<syscall name="mknod" number="14" groups="file"/>
<syscall name="chmod" number="15" groups="file"/>
<syscall name="lchown" number="16" groups="file"/>
<syscall name="brk" number="17" groups="memory"/>
<syscall name="perfctr" number="18"/>
<syscall name="lseek" number="19" groups="descriptor"/>
<syscall name="getpid" number="20"/>
<syscall name="capget" number="21"/>
<syscall name="capset" number="22"/>
<syscall name="setuid" number="23"/>
<syscall name="getuid" number="24"/>
<syscall name="vmsplice" number="25" groups="descriptor"/>
<syscall name="ptrace" number="26"/>
<syscall name="alarm" number="27"/>
<syscall name="sigaltstack" number="28" groups="signal"/>
<syscall name="pause" number="29" groups="signal"/>
<syscall name="utime" number="30" groups="file"/>
<syscall name="access" number="33" groups="file"/>
<syscall name="nice" number="34"/>
<syscall name="sync" number="36"/>
<syscall name="kill" number="37" groups="signal"/>
<syscall name="stat" number="38" groups="file"/>
<syscall name="sendfile" number="39" groups="descriptor,network"/>
<syscall name="lstat" number="40" groups="file"/>
<syscall name="dup" number="41" groups="descriptor"/>
<syscall name="pipe" number="42" groups="descriptor"/>
<syscall name="times" number="43"/>
<syscall name="umount2" number="45" groups="file"/>
<syscall name="setgid" number="46"/>
<syscall name="getgid" number="47"/>
<syscall name="signal" number="48" groups="signal"/>
<syscall name="geteuid" number="49"/>
<syscall name="getegid" number="50"/>
<syscall name="acct" number="51" groups="file"/>
<syscall name="memory_ordering" number="52"/>
<syscall name="ioctl" number="54" groups="descriptor"/>
<syscall name="reboot" number="55"/>
<syscall name="symlink" number="57" groups="file"/>
<syscall name="readlink" number="58" groups="file"/>
<syscall name="execve" number="59" groups="file,process"/>
<syscall name="umask" number="60"/>
<syscall name="chroot" number="61" groups="file"/>
<syscall name="fstat" number="62" groups="descriptor"/>
<syscall name="fstat64" number="63" groups="descriptor"/>
<syscall name="getpagesize" number="64"/>
<syscall name="msync" number="65" groups="memory"/>
<syscall name="vfork" number="66" groups="process"/>
<syscall name="pread64" number="67" groups="descriptor"/>
<syscall name="pwrite64" number="68" groups="descriptor"/>
<syscall name="mmap" number="71" groups="descriptor,memory"/>
<syscall name="munmap" number="73" groups="memory"/>
<syscall name="mprotect" number="74" groups="memory"/>
<syscall name="madvise" number="75" groups="memory"/>
<syscall name="vhangup" number="76"/>
<syscall name="mincore" number="78" groups="memory"/>
<syscall name="getgroups" number="79"/>
<syscall name="setgroups" number="80"/>
<syscall name="getpgrp" number="81"/>
<syscall name="setitimer" number="83"/>
<syscall name="swapon" number="85" groups="file"/>
<syscall name="getitimer" number="86"/>
<syscall name="sethostname" number="88"/>
<syscall name="dup2" number="90" groups="descriptor"/>
<syscall name="fcntl" number="92" groups="descriptor"/>
<syscall name="select" number="93" groups="descriptor"/>
<syscall name="fsync" number="95" groups="descriptor"/>
<syscall name="setpriority" number="96"/>
<syscall name="socket" number="97" groups="network"/>
<syscall name="connect" number="98" groups="network"/>
<syscall name="accept" number="99" groups="network"/>
<syscall name="getpriority" number="100"/>
<syscall name="rt_sigreturn" number="101" groups="signal"/>
<syscall name="rt_sigaction" number="102" groups="signal"/>
<syscall name="rt_sigprocmask" number="103" groups="signal"/>
<syscall name="rt_sigpending" number="104" groups="signal"/>
<syscall name="rt_sigtimedwait" number="105" groups="signal"/>
<syscall name="rt_sigqueueinfo" number="106" groups="signal"/>
<syscall name="rt_sigsuspend" number="107" groups="signal"/>
<syscall name="setresuid" number="108"/>
<syscall name="getresuid" number="109"/>
<syscall name="setresgid" number="110"/>
<syscall name="getresgid" number="111"/>
<syscall name="recvmsg" number="113" groups="network"/>
<syscall name="sendmsg" number="114" groups="network"/>
<syscall name="gettimeofday" number="116"/>
<syscall name="getrusage" number="117"/>
<syscall name="getsockopt" number="118" groups="network"/>
<syscall name="getcwd" number="119" groups="file"/>
<syscall name="readv" number="120" groups="descriptor"/>
<syscall name="writev" number="121" groups="descriptor"/>
<syscall name="settimeofday" number="122"/>
<syscall name="fchown" number="123" groups="descriptor"/>
<syscall name="fchmod" number="124" groups="descriptor"/>
<syscall name="recvfrom" number="125" groups="network"/>
<syscall name="setreuid" number="126"/>
<syscall name="setregid" number="127"/>
<syscall name="rename" number="128" groups="file"/>
<syscall name="truncate" number="129" groups="file"/>
<syscall name="ftruncate" number="130" groups="descriptor"/>
<syscall name="flock" number="131" groups="descriptor"/>
<syscall name="lstat64" number="132" groups="file"/>
<syscall name="sendto" number="133" groups="network"/>
<syscall name="shutdown" number="134" groups="network"/>
<syscall name="socketpair" number="135" groups="network"/>
<syscall name="mkdir" number="136" groups="file"/>
<syscall name="rmdir" number="137" groups="file"/>
<syscall name="utimes" number="138" groups="file"/>
<syscall name="stat64" number="139" groups="file"/>
<syscall name="sendfile64" number="140" groups="descriptor,network"/>
<syscall name="getpeername" number="141" groups="network"/>
<syscall name="futex" number="142"/>
<syscall name="gettid" number="143"/>
<syscall name="getrlimit" number="144"/>
<syscall name="setrlimit" number="145"/>
<syscall name="pivot_root" number="146" groups="file"/>
<syscall name="prctl" number="147"/>
<syscall name="pciconfig_read" number="148"/>
<syscall name="pciconfig_write" number="149"/>
<syscall name="getsockname" number="150" groups="network"/>
<syscall name="inotify_init" number="151" groups="descriptor"/>
<syscall name="inotify_add_watch" number="152" groups="descriptor"/>
<syscall name="poll" number="153" groups="descriptor"/>
<syscall name="getdents64" number="154" groups="descriptor"/>
<syscall name="inotify_rm_watch" number="156" groups="descriptor"/>
<syscall name="statfs" number="157" groups="file"/>
<syscall name="fstatfs" number="158" groups="descriptor"/>
<syscall name="umount" number="159" groups="file"/>
<syscall name="sched_set_affinity" number="160"/>
<syscall name="sched_get_affinity" number="161"/>
<syscall name="getdomainname" number="162"/>
<syscall name="setdomainname" number="163"/>
<syscall name="utrap_install" number="164"/>
<syscall name="quotactl" number="165" groups="file"/>
<syscall name="set_tid_address" number="166"/>
<syscall name="mount" number="167" groups="file"/>
<syscall name="ustat" number="168"/>
<syscall name="setxattr" number="169" groups="file"/>
<syscall name="lsetxattr" number="170" groups="file"/>
<syscall name="fsetxattr" number="171" groups="descriptor"/>
<syscall name="getxattr" number="172" groups="file"/>
<syscall name="lgetxattr" number="173" groups="file"/>
<syscall name="getdents" number="174" groups="descriptor"/>
<syscall name="setsid" number="175"/>
<syscall name="fchdir" number="176" groups="descriptor"/>
<syscall name="fgetxattr" number="177" groups="descriptor"/>
<syscall name="listxattr" number="178" groups="file"/>
<syscall name="llistxattr" number="179" groups="file"/>
<syscall name="flistxattr" number="180" groups="descriptor"/>
<syscall name="removexattr" number="181" groups="file"/>
<syscall name="lremovexattr" number="182" groups="file"/>
<syscall name="sigpending" number="183" groups="signal"/>
<syscall name="query_module" number="184"/>
<syscall name="setpgid" number="185"/>
<syscall name="fremovexattr" number="186" groups="descriptor"/>
<syscall name="tkill" number="187" groups="signal"/>
<syscall name="exit_group" number="188" groups="process"/>
<syscall name="uname" number="189"/>
<syscall name="init_module" number="190"/>
<syscall name="personality" number="191"/>
<syscall name="remap_file_pages" number="192" groups="memory"/>
<syscall name="epoll_create" number="193" groups="descriptor"/>
<syscall name="epoll_ctl" number="194" groups="descriptor"/>
<syscall name="epoll_wait" number="195" groups="descriptor"/>
<syscall name="ioprio_set" number="196"/>
<syscall name="getppid" number="197"/>
<syscall name="sigaction" number="198" groups="signal"/>
<syscall name="sgetmask" number="199" groups="signal"/>
<syscall name="ssetmask" number="200" groups="signal"/>
<syscall name="sigsuspend" number="201" groups="signal"/>
<syscall name="oldlstat" number="202" groups="file"/>
<syscall name="uselib" number="203" groups="file"/>
<syscall name="readdir" number="204" groups="descriptor"/>
<syscall name="readahead" number="205" groups="descriptor"/>
<syscall name="socketcall" number="206" groups="descriptor"/>
<syscall name="syslog" number="207"/>
<syscall name="lookup_dcookie" number="208"/>
<syscall name="fadvise64" number="209" groups="descriptor"/>
<syscall name="fadvise64_64" number="210" groups="descriptor"/>
<syscall name="tgkill" number="211" groups="signal"/>
<syscall name="waitpid" number="212" groups="process"/>
<syscall name="swapoff" number="213" groups="file"/>
<syscall name="sysinfo" number="214"/>
<syscall name="ipc" number="215" groups="ipc"/>
<syscall name="sigreturn" number="216" groups="signal"/>
<syscall name="clone" number="217" groups="process"/>
<syscall name="ioprio_get" number="218"/>
<syscall name="adjtimex" number="219"/>
<syscall name="sigprocmask" number="220" groups="signal"/>
<syscall name="create_module" number="221"/>
<syscall name="delete_module" number="222"/>
<syscall name="get_kernel_syms" number="223"/>
<syscall name="getpgid" number="224"/>
<syscall name="bdflush" number="225"/>
<syscall name="sysfs" number="226"/>
<syscall name="afs_syscall" number="227"/>
<syscall name="setfsuid" number="228"/>
<syscall name="setfsgid" number="229"/>
<syscall name="_newselect" number="230" groups="descriptor"/>
<syscall name="splice" number="232" groups="descriptor"/>
<syscall name="stime" number="233"/>
<syscall name="statfs64" number="234" groups="file"/>
<syscall name="fstatfs64" number="235" groups="descriptor"/>
<syscall name="_llseek" number="236" groups="descriptor"/>
<syscall name="mlock" number="237" groups="memory"/>
<syscall name="munlock" number="238" groups="memory"/>
<syscall name="mlockall" number="239" groups="memory"/>
<syscall name="munlockall" number="240" groups="memory"/>
<syscall name="sched_setparam" number="241"/>
<syscall name="sched_getparam" number="242"/>
<syscall name="sched_setscheduler" number="243"/>
<syscall name="sched_getscheduler" number="244"/>
<syscall name="sched_yield" number="245"/>
<syscall name="sched_get_priority_max" number="246"/>
<syscall name="sched_get_priority_min" number="247"/>
<syscall name="sched_rr_get_interval" number="248"/>
<syscall name="nanosleep" number="249"/>
<syscall name="mremap" number="250" groups="memory"/>
<syscall name="_sysctl" number="251"/>
<syscall name="getsid" number="252"/>
<syscall name="fdatasync" number="253" groups="descriptor"/>
<syscall name="nfsservctl" number="254"/>
<syscall name="sync_file_range" number="255" groups="descriptor"/>
<syscall name="clock_settime" number="256"/>
<syscall name="clock_gettime" number="257"/>
<syscall name="clock_getres" number="258"/>
<syscall name="clock_nanosleep" number="259"/>
<syscall name="sched_getaffinity" number="260"/>
<syscall name="sched_setaffinity" number="261"/>
<syscall name="timer_settime" number="262"/>
<syscall name="timer_gettime" number="263"/>
<syscall name="timer_getoverrun" number="264"/>
<syscall name="timer_delete" number="265"/>
<syscall name="timer_create" number="266"/>
<syscall name="vserver" number="267"/>
<syscall name="io_setup" number="268"/>
<syscall name="io_destroy" number="269"/>
<syscall name="io_submit" number="270"/>
<syscall name="io_cancel" number="271"/>
<syscall name="io_getevents" number="272"/>
<syscall name="mq_open" number="273"/>
<syscall name="mq_unlink" number="274"/>
<syscall name="mq_timedsend" number="275"/>
<syscall name="mq_timedreceive" number="276"/>
<syscall name="mq_notify" number="277"/>
<syscall name="mq_getsetattr" number="278"/>
<syscall name="waitid" number="279" groups="process"/>
<syscall name="tee" number="280" groups="descriptor"/>
<syscall name="add_key" number="281"/>
<syscall name="request_key" number="282"/>
<syscall name="keyctl" number="283"/>
<syscall name="openat" number="284" groups="descriptor,file"/>
<syscall name="mkdirat" number="285" groups="descriptor,file"/>
<syscall name="mknodat" number="286" groups="descriptor,file"/>
<syscall name="fchownat" number="287" groups="descriptor,file"/>
<syscall name="futimesat" number="288" groups="descriptor,file"/>
<syscall name="fstatat64" number="289" groups="descriptor,file"/>
<syscall name="unlinkat" number="290" groups="descriptor,file"/>
<syscall name="renameat" number="291" groups="descriptor,file"/>
<syscall name="linkat" number="292" groups="descriptor,file"/>
<syscall name="symlinkat" number="293" groups="descriptor,file"/>
<syscall name="readlinkat" number="294" groups="descriptor,file"/>
<syscall name="fchmodat" number="295" groups="descriptor,file"/>
<syscall name="faccessat" number="296" groups="descriptor,file"/>
<syscall name="pselect6" number="297" groups="descriptor"/>
<syscall name="ppoll" number="298" groups="descriptor"/>
<syscall name="unshare" number="299" groups="process"/>
<syscall name="set_robust_list" number="300"/>
<syscall name="get_robust_list" number="301"/>
<syscall name="migrate_pages" number="302" groups="memory"/>
<syscall name="mbind" number="303" groups="memory"/>
<syscall name="get_mempolicy" number="304" groups="memory"/>
<syscall name="set_mempolicy" number="305" groups="memory"/>
<syscall name="kexec_load" number="306"/>
<syscall name="move_pages" number="307" groups="memory"/>
<syscall name="getcpu" number="308"/>
<syscall name="epoll_pwait" number="309" groups="descriptor"/>
<syscall name="utimensat" number="310" groups="descriptor,file"/>
<syscall name="signalfd" number="311" groups="descriptor,signal"/>
<syscall name="timerfd_create" number="312" groups="descriptor"/>
<syscall name="eventfd" number="313" groups="descriptor"/>
<syscall name="fallocate" number="314" groups="descriptor"/>
<syscall name="timerfd_settime" number="315" groups="descriptor"/>
<syscall name="timerfd_gettime" number="316" groups="descriptor"/>
<syscall name="signalfd4" number="317" groups="descriptor,signal"/>
<syscall name="eventfd2" number="318" groups="descriptor"/>
<syscall name="epoll_create1" number="319" groups="descriptor"/>
<syscall name="dup3" number="320" groups="descriptor"/>
<syscall name="pipe2" number="321" groups="descriptor"/>
<syscall name="inotify_init1" number="322" groups="descriptor"/>
<syscall name="accept4" number="323" groups="network"/>
<syscall name="preadv" number="324" groups="descriptor"/>
<syscall name="pwritev" number="325" groups="descriptor"/>
<syscall name="rt_tgsigqueueinfo" number="326" groups="process,signal"/>
<syscall name="perf_event_open" number="327" groups="descriptor"/>
<syscall name="recvmmsg" number="328" groups="network"/>
</syscalls_info>