gdb: update to version 7.8, fix musl build
[openwrt.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 @@ -81,6 +82,10 @@
12  # endif
13  #endif /* HAVE_PERSONALITY */
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 +