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 v4 2/3] Add an optional "alias" attribute to syscall entries.


> From: John Baldwin <jhb@FreeBSD.org>
> Date: Fri, 30 Nov 2018 14:20:12 -0800
> 
> gdb/ChangeLog:
> 
> 	* NEWS: Add entry documenting system call aliases.
> 	* break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
> 	to get_syscalls_by_name.
> 	* gdbarch.sh (UNKNOWN_SYSCALL): Remove.
> 	* gdbarch.h: Regenerate.
> 	* syscalls/gdb-syscalls.dtd (syscall): Add alias attribute.
> 	* xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename
> 	from get_syscall_by_name.  Now accepts a pointer to a vector of
> 	integers and returns a bool.
> 	[HAVE_LIBEXPAT] (struct syscall_desc): Add alias member.
> 	(syscall_create_syscall_desc): Add alias parameter and pass it to
> 	syscall_desc constructor.
> 	(syscall_start_syscall): Handle alias attribute.
> 	(syscall_attr): Add alias attribute.
> 	(xml_get_syscalls_by_name): Rename from xml_get_syscall_number.
> 	Now accepts a pointer to a vector of integers and returns a
> 	bool.  Add syscalls whose alias or name matches the requested
> 	name.
> 	(get_syscalls_by_name): Rename from get_syscall_by_name.  Now
> 	accepts a pointer to a vector of integers and returns a bool.
> 	* xml-syscall.h (get_syscalls_by_name): Likewise.
> 
> gdb/doc/ChangeLog:
> 
> 	* gdb.texinfo (Set Catchpoints): Add an anchor for 'catch syscall'.
> 	(Native): Add a FreeBSD subsection.
> 	(FreeBSD): Document use of system call aliases for compatibility
> 	system calls.

OK for the documentation parts.


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