mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
a2a225517d
GDB 8.1.1 brings the following fixes and enhancements over GDB 8.1: * PR gdb/22824 (misleading description of new rbreak Python function in GDB 8.1 NEWS file) * PR gdb/22849 (ctrl-c doesn't work in extended-remote) * PR gdb/22907 ([Regression] gdbserver doesn't work with filename-only binaries) * PR gdb/23028 (inconsistent disassemble of vcvtpd2dq) * PR gdb/23053 (Fix -D_GLIBCXX_DEBUG gdb-add-index regression) * PR gdb/23127 ([AArch64] GDB cannot be used for debugging software that uses high Virtual Addresses) * PR server/23158 (gdbserver no longer functional on Windows) * PR breakpoints/23210 ([8.1/8.2 Regression] Bogus Breakpoint address adjusted from 0xf7fe7dd3 to 0xfffffffff7fe7dd3) Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From 56893a61aa4f0270fa8d1197b9848247f90fce0d Mon Sep 17 00:00:00 2001
|
|
From: Yousong Zhou <yszhou4tech@gmail.com>
|
|
Date: Fri, 24 Mar 2017 10:36:03 +0800
|
|
Subject: [PATCH] Fix invalid sigprocmask call
|
|
|
|
The POSIX document says
|
|
|
|
The pthread_sigmask() and sigprocmask() functions shall fail if:
|
|
|
|
[EINVAL]
|
|
The value of the how argument is not equal to one of the defined values.
|
|
|
|
and this is how musl-libc is currently doing. Fix the call to be safe
|
|
and correct
|
|
|
|
[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_sigmask.html
|
|
|
|
gdb/ChangeLog:
|
|
2017-03-24 Yousong Zhou <yszhou4tech@gmail.com>
|
|
|
|
* common/signals-state-save-restore.c (save_original_signals_state):
|
|
Fix invalid sigprocmask call.
|
|
---
|
|
gdb/ChangeLog | 5 +++++
|
|
gdb/common/signals-state-save-restore.c | 2 +-
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
--- a/gdb/common/signals-state-save-restore.c
|
|
+++ b/gdb/common/signals-state-save-restore.c
|
|
@@ -41,7 +41,7 @@ save_original_signals_state (bool quiet)
|
|
int i;
|
|
int res;
|
|
|
|
- res = sigprocmask (0, NULL, &original_signal_mask);
|
|
+ res = sigprocmask (SIG_BLOCK, NULL, &original_signal_mask);
|
|
if (res == -1)
|
|
perror_with_name (("sigprocmask"));
|
|
|