This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Crossdebugging compilation fix for x86-64
- From: Andreas Schwab <schwab at suse dot de>
- To: Michal Ludvig <mludvig at suse dot cz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 04 Mar 2002 19:03:07 +0100
- Subject: Re: [RFA] Crossdebugging compilation fix for x86-64
- References: <3C8368C6.90101@suse.cz> <20020304112017.A19528@nevyn.them.org>
Daniel Jacobowitz <drow@mvista.com> writes:
|> On Mon, Mar 04, 2002 at 01:29:58PM +0100, Michal Ludvig wrote:
|> > Index: ChangeLog
|> > from Michal Ludvig <mludvig@suse.cz>
|> >
|> > * MAINTAINERS (x86-64): Target is not broken anymore.
|> > * x86-64-tdep.h (sys/reg.h): Delete
|> > (R15, R14, R13, R12, RBP, RBX, R11, R10, R9, R8, RAX, RCX, RDX,
|> > RSI, RDI, ORIG, RIP, CS, EFLAGS, RSP, SS): Define. These can't be
|> > included from sys/reg.h when compiling for cross-debuging.
|>
|> These belong in a Linux-specific file. Their order is not dependent on
|> anything in the x86-64 ABI, is it?
What puzzles me more is the fact that x86_64_regmap is defined (and not
just declared) in a header. It is only used in x86-64-linux-nat.c, so it
should be moved there (and that file can use <sys/reg.h> freely).
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."