Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From b14a57d90e1cdd8144cda4c8882bd1db44d26dab Mon Sep 17 00:00:00 2001 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 23 Mar 2016 06:30:09 +0000 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 4 | Subject: [PATCH 03/11] mips-linux-nat: Define _ABIO32 if not defined |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | |
| 6 | This helps building gdb on mips64 on musl, since |
| 7 | musl does not provide sgidefs.h this define is |
| 8 | only defined when GCC is using o32 ABI, in that |
| 9 | case gcc emits it as built-in define and hence |
| 10 | it works ok for mips32 |
| 11 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 12 | Upstream-Status: Pending |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 15 | gdb/mips-linux-nat.c | 4 ++++ |
| 16 | 1 file changed, 4 insertions(+) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 17 | |
| 18 | diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 19 | index 32835c16b2..68a7587af2 100644 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 20 | --- a/gdb/mips-linux-nat.c |
| 21 | +++ b/gdb/mips-linux-nat.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 22 | @@ -41,6 +41,10 @@ |
| 23 | #ifndef PTRACE_GET_THREAD_AREA |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 24 | #define PTRACE_GET_THREAD_AREA 25 |
| 25 | #endif |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 26 | +/* musl does not define and relies on compiler built-in macros for it */ |
| 27 | +#ifndef _ABIO32 |
| 28 | +#define _ABIO32 1 |
| 29 | +#endif |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 30 | |
| 31 | class mips_linux_nat_target final : public linux_nat_trad_target |
| 32 | { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | -- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 34 | 2.18.0 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 35 | |