From: Pedro Alves <palves@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>,
Mike Frysinger <vapier@gentoo.org>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH v3] gdbserver: uclinux: pull in ptrace offset definitions from asm/ptrace.h
Date: Thu, 26 Apr 2012 18:59:00 -0000 [thread overview]
Message-ID: <4F999985.8060408@redhat.com> (raw)
In-Reply-To: <4F99986D.3090305@redhat.com>
On 04/26/2012 07:48 PM, Pedro Alves wrote:
> On 04/26/2012 07:33 PM, Will Deacon wrote:
>> and then we hope they all play nicely together with their own namespaces.
>>
>
>
> Bah, they don't... Before sys/ptrace.h.
>
> gcc -c -g3 -O0 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbserver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Werror ../../../src/gdb/gdbserver/linux-low.c
> In file included from /usr/include/asm/ptrace.h:58,
> from ../../../src/gdb/gdbserver/linux-low.c:27:
> /usr/include/asm/fpu.h:57: error: redefinition of ‘struct ia64_fpreg’
> In file included from ../../../src/gdb/gdbserver/linux-low.c:28:
> /usr/include/sys/ptrace.h:75: error: expected identifier before numeric constant
> /usr/include/sys/ptrace.h:117: error: redefinition of ‘struct pt_all_user_regs’
> ../../../src/gdb/gdbserver/linux-low.c: In function ‘linux_attach_lwp_1’:
> ../../../src/gdb/gdbserver/linux-low.c:669: error: ‘PTRACE_ATTACH’ undeclared (first use in this function)
> ../../../src/gdb/gdbserver/linux-low.c:669: error: (Each undeclared identifier is reported only once
> ../../../src/gdb/gdbserver/linux-low.c:669: error: for each function it appears in.)
> ../../../src/gdb/gdbserver/linux-low.c: In function ‘linux_detach_one_lwp’:
> ../../../src/gdb/gdbserver/linux-low.c:1139: error: ‘PTRACE_DETACH’ undeclared (first use in this function)
> make: *** [linux-low.o] Error 1
>
> After sys/ptrace.h.
>
> gcc -c -g3 -O0 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbserver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Werror ../../../src/gdb/gdbserver/linux-low.c
> In file included from /usr/include/asm/ptrace.h:58,
> from ../../../src/gdb/gdbserver/linux-low.c:28:
> /usr/include/asm/fpu.h:57: error: redefinition of ‘struct ia64_fpreg’
> In file included from ../../../src/gdb/gdbserver/linux-low.c:28:
> /usr/include/asm/ptrace.h:208: error: redefinition of ‘struct pt_all_user_regs’
> make: *** [linux-low.o] Error 1
>
BTW, for the archives:
$ uname -a
Linux tic 2.6.32-5-mckinley #1 SMP Mon Oct 3 06:04:14 UTC 2011 ia64 GNU/Linux
$ cat /etc/debian_version
6.0.3
--
Pedro Alves
next prev parent reply other threads:[~2012-04-26 18:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 18:06 Will Deacon
2012-04-26 18:11 ` Pedro Alves
2012-04-26 18:15 ` Mike Frysinger
2012-04-26 18:23 ` Pedro Alves
2012-04-26 18:26 ` Mike Frysinger
2012-04-26 18:34 ` Pedro Alves
2012-04-26 18:36 ` Will Deacon
2012-04-26 18:53 ` Pedro Alves
2012-04-26 18:59 ` Pedro Alves [this message]
2012-04-26 19:06 ` Mike Frysinger
2012-04-26 19:26 ` Pedro Alves
2012-04-27 7:25 ` Jan Kratochvil
2012-04-26 18:37 ` Will Deacon
2012-04-26 19:36 ` Pedro Alves
2012-04-27 10:32 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F999985.8060408@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=vapier@gentoo.org \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox