gdb: update to the latest version, fixes a build error with gcc 5.2
[openwrt/staging/mkresin.git] / package / devel / gdb / patches / 100-musl_fix.patch
1 --- a/gdb/linux-nat.c
2 +++ b/gdb/linux-nat.c
3 @@ -17,6 +17,7 @@
4 You should have received a copy of the GNU General Public License
5 along with this program. If not, see <http://www.gnu.org/licenses/>. */
6
7 +#include "stopcode.h"
8 #include "defs.h"
9 #include "inferior.h"
10 #include "infrun.h"
11 @@ -73,6 +74,10 @@
12 #define SPUFS_MAGIC 0x23c9b64e
13 #endif
14
15 +#ifndef __SIGRTMIN
16 +#define __SIGRTMIN SIGRTMIN
17 +#endif
18 +
19 /* This comment documents high-level logic of this file.
20
21 Waiting for events in sync mode
22 --- /dev/null
23 +++ b/gdb/stopcode.h
24 @@ -0,0 +1,4 @@
25 +#ifndef W_STOPCODE
26 +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
27 +#endif
28 +