aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-02-05 17:47:07 +0100
committerTom de Vries <tdevries@suse.de>2021-02-05 17:47:07 +0100
commit0e857c82883cff04ccc8868762c78b0e94ccde91 (patch)
tree2da77697ed1016db5c8fadd40e36327f88d57085 /gdb/ChangeLog
parentbdfea17ea9bbd9f92ad19a70d770af42473d9c07 (diff)
downloadgdb-0e857c82883cff04ccc8868762c78b0e94ccde91.zip
gdb-0e857c82883cff04ccc8868762c78b0e94ccde91.tar.gz
gdb-0e857c82883cff04ccc8868762c78b0e94ccde91.tar.bz2
[gdb/breakpoints] Fix segfault for catch syscall -1
Using a hello world a.out, I run into a segfault: ... $ gcc hello.c $ gdb -batch a.out -ex "catch syscall -1" -ex r Catchpoint 1 (syscall -1) Aborted (core dumped) ... Fix this by erroring out if a negative syscall number is used in the catch syscall command. Tested on x86_64-linux. gdb/ChangeLog: 2021-02-05 Tom de Vries <tdevries@suse.de> PR breakpoints/27313 * break-catch-syscall.c (catch_syscall_split_args): Reject negative syscall numbers. gdb/testsuite/ChangeLog: 2021-02-05 Tom de Vries <tdevries@suse.de> PR breakpoints/27313 * gdb.base/catch-syscall.exp: Check that "catch syscall -1" is rejected.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c6ad0bb..e4a5ed8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2021-02-05 Tom de Vries <tdevries@suse.de>
+
+ PR breakpoints/27313
+ * break-catch-syscall.c (catch_syscall_split_args): Reject negative
+ syscall numbers.
+
2021-02-05 Tom Tromey <tom@tromey.com>
* compile/compile-c-support.c (get_compile_context)