From: "William A. Gatliff" <bgat@billgatliff.com>
To: crossgcc@sources.redhat.com, gdb@sources.redhat.com
Subject: Re: Patch for arm-linux gdbserver
Date: Fri, 01 Feb 2002 12:02:00 -0000 [thread overview]
Message-ID: <20020201140227.A6958@saturn.billgatliff.com> (raw)
In-Reply-To: <20020201142955.A32707@nevyn.them.org>; from drow@mvista.com on Fri, Feb 01, 2002 at 02:29:55PM -0500
Guys:
Got it! Well, it *builds* anyway. My arm-linux target is so messed
up right now, it'll be a few hours before I can run it.
See previous posts on building ncurses and bfd, and configuring gdb
for --host=arm-linux... Here's where I hacked next.
After configuring gdb, edit <builddir>/gdbserver/Makefile:
I changed BFD_CFLAGS to this:
BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC) \
-I/home/bgat/H-arm-cerfpod-linux-gnu/include
Because that's where my bfd.h is. Next, I added this to INCLUDE_CFLAGS:
-I /home/bgat/H-arm-cerfpod-linux-gnu/arm-linux/include
because that's where I put my target-specific toolchain, in particular
my configured linux kernel headers (including all the symlinks).
Then I created a bogus include/sys dir and reg.h:
mkdir -p /home/bgat/H-arm-cerfpod-linux-gnu/arm-linux/include/sys
touch /home/bgat/H-arm-cerfpod-linux-gnu/arm-linux/include/sys/reg.h
I couldn't figure out the right way to unset the #define in
low-linux.c, so I figured why not...
Finally, I added -static to GLOBAL_CFLAGS.
Then it's:
$ CC=arm-linux-gcc make
$ file gdbserver
gdbserver: ELF 32-bit LSB executable, ARM, version 1, statically linked, not stripped
But does the resulting executable *work*? I'll know in a bit.
> Basically, this is because we abuse gdb's configure quite badly. I
> recommend that you build a small curses library or grab one from an
> m68k disribution or what-have-you, and ignore the problem for now.
> I'll see about fixing this a little down the road.
Yea, we're doing a number on it here. :^)
b.g.
--
Bill Gatliff
bgat@billgatliff.com
prev parent reply other threads:[~2002-02-01 20:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-31 9:36 William A. Gatliff
[not found] ` <4.1.20020131181535.00b40f00@mhsun1.maidenhead.arm.com>
2002-01-31 13:36 ` William A. Gatliff
2002-01-31 15:10 ` Daniel Jacobowitz
2002-01-31 15:21 ` Peter Barada
2002-02-01 7:36 ` Daniel Jacobowitz
2002-02-01 10:34 ` Peter Barada
2002-02-01 11:03 ` William A. Gatliff
2002-02-01 11:30 ` Daniel Jacobowitz
2002-02-01 12:02 ` William A. Gatliff [this message]
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=20020201140227.A6958@saturn.billgatliff.com \
--to=bgat@billgatliff.com \
--cc=crossgcc@sources.redhat.com \
--cc=gdb@sources.redhat.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