This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Use sized types in tracepoint.
- From: Yao Qi <yao at codesourcery dot com>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: Pedro Alves <palves at redhat dot com>, Mark Kettenis <mark dot kettenis at xs4all dot nl>, <gdb-patches at sourceware dot org>
- Date: Thu, 12 Apr 2012 21:50:55 +0800
- Subject: Re: [PATCH] Use sized types in tracepoint.
- References: <1331905618-2631-1-git-send-email-yao@codesourcery.com> <201203161550.q2GFoQhS029855@glazunov.sibelius.xs4all.nl> <4F6362F0.2050906@redhat.com> <4F843CB0.5020302@codesourcery.com> <4F8440E1.40504@redhat.com> <4F844772.6030305@qnx.com>
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