Subject: Re: Anyone working on fixing gdb6 for amd64?
To: None <paul@whooppee.com>
From: Tobias Nygren <tnn@NetBSD.org>
List: port-amd64
Date: 05/23/2007 19:35:20
This is a multi-part message in MIME format.
--Multipart=_Wed__23_May_2007_19_35_20_+0200_puhCh0_P2YfhHUWe
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On Wed, 23 May 2007 09:55:59 -0700 (PDT)
Paul Goyette <paul@whooppee.com> wrote:
> This seems to have been going on for several days now...
>
> # compile libgdb/amd64nbsd-nat.o
> /usr/obj/tooldir/x86_64/amd64/bin/x86_64--netbsd-gcc -O2 -Werror -Wno-stack-protector -I/usr/src/gnu/usr.bin/gdb6/libgdb -I/usr/src/gnu/usr.bin/gdb6/libgdb/../arch/x86_64 -I/usr/src/gnu/dist/gdb6/gdb -I/usr/src/gnu/dist/gdb6/gdb/config -I/usr/src/gnu/dist/gdb6/include/opcode -I/usr/src/gnu/dist/gdb6 -I/usr/src/gnu/usr.bin/gdb6/libgdb/../bfd/arch/x86_64 -I/usr/src/gnu/dist/gdb6/bfd -I/usr/src/gnu/dist/gdb6/include -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -DMI_OUT=1 -DTUI=1 -nostdinc -isystem /usr/obj/destdir/amd64/usr/include -c /usr/src/gnu/dist/gdb6/gdb/amd64nbsd-nat.c -o amd64nbsd-nat.o
> /usr/src/gnu/dist/gdb6/gdb/amd64nbsd-nat.c: In function 'amd64nbsd_supply_pcb':
> /usr/src/gnu/dist/gdb6/gdb/amd64nbsd-nat.c:101: error: 'struct switchframe' has no member named 'sf_rbp'
> *** [amd64nbsd-nat.o] Error code 1
>
I was just thinking the same thing. Here's a patch that makes it
compile at least. It's based on what i386 does but I don't know if
it works.
-T
--Multipart=_Wed__23_May_2007_19_35_20_+0200_puhCh0_P2YfhHUWe
Content-Type: application/octet-stream;
name="amd64nbsd-nat.c.diff"
Content-Disposition: attachment;
filename="amd64nbsd-nat.c.diff"
Content-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