* [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.
@ 2013-08-24 19:34 Will Newton
2013-08-24 21:04 ` Luis Machado
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Will Newton @ 2013-08-24 19:34 UTC (permalink / raw)
To: gdb-patches; +Cc: patches
As uintptr_t is used stdint.h must be included on all architectures.
2013-08-24 Will Newton <will.newton@linaro.org>
* common/linux-ptrace.c: Include stdint.h unconditionally.
---
gdb/common/linux-ptrace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
index a4a2ca3..3a8e25e 100644
--- a/gdb/common/linux-ptrace.c
+++ b/gdb/common/linux-ptrace.c
@@ -30,6 +30,8 @@
#include "gdb_assert.h"
#include "gdb_wait.h"
+#include <stdint.h>
+
/* Stores the currently supported ptrace options. A value of
-1 means we did not check for features yet. A value of 0 means
there are no supported features. */
@@ -64,7 +66,6 @@ extern void (linux_ptrace_test_ret_to_nx_instr) (void);
#include <sys/reg.h>
#include <sys/mman.h>
#include <signal.h>
-#include <stdint.h>
#endif /* defined __i386__ || defined __x86_64__ */
--
1.8.1.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.
2013-08-24 19:34 [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures Will Newton
@ 2013-08-24 21:04 ` Luis Machado
2013-08-26 14:03 ` Agovic, Sanimir
2013-08-26 14:34 ` Pedro Alves
2 siblings, 0 replies; 5+ messages in thread
From: Luis Machado @ 2013-08-24 21:04 UTC (permalink / raw)
To: Will Newton; +Cc: gdb-patches, patches
On 08/24/2013 04:34 PM, Will Newton wrote:
>
> As uintptr_t is used stdint.h must be included on all architectures.
>
> 2013-08-24 Will Newton <will.newton@linaro.org>
>
> * common/linux-ptrace.c: Include stdint.h unconditionally.
> ---
> gdb/common/linux-ptrace.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
> index a4a2ca3..3a8e25e 100644
> --- a/gdb/common/linux-ptrace.c
> +++ b/gdb/common/linux-ptrace.c
> @@ -30,6 +30,8 @@
> #include "gdb_assert.h"
> #include "gdb_wait.h"
>
> +#include <stdint.h>
> +
> /* Stores the currently supported ptrace options. A value of
> -1 means we did not check for features yet. A value of 0 means
> there are no supported features. */
> @@ -64,7 +66,6 @@ extern void (linux_ptrace_test_ret_to_nx_instr) (void);
> #include <sys/reg.h>
> #include <sys/mman.h>
> #include <signal.h>
> -#include <stdint.h>
>
> #endif /* defined __i386__ || defined __x86_64__ */
>
Well spotted.
Thanks,
Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.
2013-08-24 19:34 [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures Will Newton
2013-08-24 21:04 ` Luis Machado
@ 2013-08-26 14:03 ` Agovic, Sanimir
2013-08-26 14:34 ` Pedro Alves
2 siblings, 0 replies; 5+ messages in thread
From: Agovic, Sanimir @ 2013-08-26 14:03 UTC (permalink / raw)
To: 'Will Newton', gdb-patches; +Cc: patches
Hello Will,
I run your fix via buildbot[1] and now all builds are green again, thus it lgtm.
However I cannot approve your patch.
[1] http://gcc20.fsffrance.org:9010/waterfall
-Sanimir
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-owner@sourceware.org] On Behalf
> Of Will Newton
> Sent: Saturday, August 24, 2013 09:34 PM
> To: gdb-patches@sourceware.org
> Cc: patches@linaro.org
> Subject: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.
>
>
> As uintptr_t is used stdint.h must be included on all architectures.
>
> 2013-08-24 Will Newton <will.newton@linaro.org>
>
> * common/linux-ptrace.c: Include stdint.h unconditionally.
> ---
> gdb/common/linux-ptrace.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
> index a4a2ca3..3a8e25e 100644
> --- a/gdb/common/linux-ptrace.c
> +++ b/gdb/common/linux-ptrace.c
> @@ -30,6 +30,8 @@
> #include "gdb_assert.h"
> #include "gdb_wait.h"
>
> +#include <stdint.h>
> +
> /* Stores the currently supported ptrace options. A value of
> -1 means we did not check for features yet. A value of 0 means
> there are no supported features. */
> @@ -64,7 +66,6 @@ extern void (linux_ptrace_test_ret_to_nx_instr) (void);
> #include <sys/reg.h>
> #include <sys/mman.h>
> #include <signal.h>
> -#include <stdint.h>
>
> #endif /* defined __i386__ || defined __x86_64__ */
>
> --
> 1.8.1.4
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.
2013-08-24 19:34 [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures Will Newton
2013-08-24 21:04 ` Luis Machado
2013-08-26 14:03 ` Agovic, Sanimir
@ 2013-08-26 14:34 ` Pedro Alves
2013-08-28 14:10 ` Will Newton
2 siblings, 1 reply; 5+ messages in thread
From: Pedro Alves @ 2013-08-26 14:34 UTC (permalink / raw)
To: Will Newton; +Cc: gdb-patches, patches
On 08/24/2013 08:34 PM, Will Newton wrote:
>
> As uintptr_t is used stdint.h must be included on all architectures.
>
> 2013-08-24 Will Newton <will.newton@linaro.org>
>
> * common/linux-ptrace.c: Include stdint.h unconditionally.
OK, thanks.
--
Pedro Alves
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.
2013-08-26 14:34 ` Pedro Alves
@ 2013-08-28 14:10 ` Will Newton
0 siblings, 0 replies; 5+ messages in thread
From: Will Newton @ 2013-08-28 14:10 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches, Patch Tracking
On 26 August 2013 15:34, Pedro Alves <palves@redhat.com> wrote:
> On 08/24/2013 08:34 PM, Will Newton wrote:
>>
>> As uintptr_t is used stdint.h must be included on all architectures.
>>
>> 2013-08-24 Will Newton <will.newton@linaro.org>
>>
>> * common/linux-ptrace.c: Include stdint.h unconditionally.
>
> OK, thanks.
Committed, sorry for the delay.
--
Will Newton
Toolchain Working Group, Linaro
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-08-28 14:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-24 19:34 [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures Will Newton
2013-08-24 21:04 ` Luis Machado
2013-08-26 14:03 ` Agovic, Sanimir
2013-08-26 14:34 ` Pedro Alves
2013-08-28 14:10 ` Will Newton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox