aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2018-12-13 11:36:42 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2018-12-13 11:36:42 -0800
commit4794efbfdc4b1497c1f47397b2a2c43382e3de78 (patch)
tree1747426f8724a8f0d3bf3c000f6906c9242df1c3 /gdb/ChangeLog
parentb7c8601a7f2874de1bbe0dc38ef86ea053593ad8 (diff)
downloadgdb-4794efbfdc4b1497c1f47397b2a2c43382e3de78.zip
gdb-4794efbfdc4b1497c1f47397b2a2c43382e3de78.tar.gz
gdb-4794efbfdc4b1497c1f47397b2a2c43382e3de78.tar.bz2
Change get_syscalls_by_group to append to an existing vector of integers.
This removes the need for the caller to explicitly manage the memory for the returned system call list. The sole caller only needed the system call numbers rather than the full syscall structures. get_syscalls_by_group now uses a boolean return value to indicate if the requested group exists. gdb/ChangeLog: * break-catch-syscall.c (catch_syscall_split_args): Pass 'result' to get_syscalls_by_group. * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return false. [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall numbers to an existing vector of integers and return a bool. (get_syscalls_by_group): Accept pointer to vector of integers and change return type to bool. * xml-syscall.h (get_syscalls_by_group): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bf40e68..93ee629 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2018-12-13 John Baldwin <jhb@FreeBSD.org>
+
+ * break-catch-syscall.c (catch_syscall_split_args): Pass 'result'
+ to get_syscalls_by_group.
+ * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return
+ false.
+ [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall
+ numbers to an existing vector of integers and return a bool.
+ (get_syscalls_by_group): Accept pointer to vector of integers
+ and change return type to bool.
+ * xml-syscall.h (get_syscalls_by_group): Likewise.
+
2018-12-13 Jim Wilson <jimw@sifive.com>
* riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add