This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use sized types in tracepoint.


On 04/10/2012 10:45 PM, Aleksandar Ristovski wrote:
> On 12-04-10 10:17 AM, Pedro Alves wrote:
>> we don't know if including stdint.h unconditionally
>> works on NTO.  It most probably does.  Added Aleksandar to CC.
> 
> Yes, it works for NTO.
> 

Here is a small patch to include stdint.h unconditionally in gdbserver.

-- 
Yao (éå)
gdb/gdbserver:

2012-04-12  Yao Qi  <yao@codesourcery.com>

	* tracepoint.c: Include stdint.h unconditionally.
---
 gdb/gdbserver/tracepoint.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index 2144f6f..f06e3c0 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -24,9 +24,8 @@
 #include <unistd.h>
 #include <sys/time.h>
 #include <stddef.h>
-#if HAVE_STDINT_H
 #include <stdint.h>
-#endif
+
 #include "ax.h"
 
 /* This file is built for both GDBserver, and the in-process
-- 
1.7.0.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]