Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "William A. Gatliff" <bgat@billgatliff.com>
To: "Keith.Walker" <Keith.Walker@arm.com>
Cc: crossgcc@sources.redhat.com, gdb@sources.redhat.com
Subject: Re: Patch for arm-linux gdbserver
Date: Thu, 31 Jan 2002 13:36:00 -0000	[thread overview]
Message-ID: <20020131153627.A3137@saturn.billgatliff.com> (raw)
In-Reply-To: <4.1.20020131181535.00b40f00@mhsun1.maidenhead.arm.com>; from Keith.Walker@arm.com on Thu, Jan 31, 2002 at 06:50:13PM +0000

Keith:


[root@venus gdbserver]# make
arm-linux-gcc -c -g    -I/home/bgat/Intrinsyc/include -I. -I.. -I../../gdb/gdbserver -I../../gdb/gdbserver/.. -I../../gdb/gdbserver/../config -I../../gdb/gdbserver/../../include -I../../bfd -I../../gdb/gdbserver/../../bfd -DGDBSERVER ../../gdb/gdbserver/low-linux.c
../../gdb/gdbserver/low-linux.c:42: sys/reg.h: No such file or directory
make: *** [low-linux.o] Error 1

[root@venus gdbserver]# find ~/Intrinsyc/ -name reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-mips/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-alpha/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-sparc/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-sparc64/reg.h
/root/Intrinsyc/arm-linux/sys-include/asm-mips64/reg.h


I'm using a prebuilt toolchain from Intrinsyc.  I'm thinking there's
something wrong about it, but I can't quite put my finger on it...

Where is your reg.h?

What versions of arm-linux tools are you using?  I may just have to
start from scratch here...


b.g.



On Thu, Jan 31, 2002 at 06:50:13PM +0000, Keith.Walker wrote:
> >Regarding this:
> >
> >http://sources.redhat.com/ml/gdb-patches/2001-12/msg00137.html
> >
> >
> >Do you have a quick recipe for building gdbserver?
> >
> >I have an arm-linux toolchain installed, but I'm having to do a lot of
> >editing in the Makefile for gdbserver after configuring, to get my
> >search paths right.  I haven't had a successful build yet.
> >
> >This makes me suspicious that I'm doing something wrong...
> 
> What host & target are you specifying when building gdb?
> 
> If you are just building gdb to run on your (Intel?) linux box but targeted
> at ARM (i.e. you have just built gdb using configure --target=arm-linux
> ......) then try the following ......
> 
> In the gdbserver build directory:
> 
>    change the symbolic link xm.h to point to
> <SRCDIR>/gdb/config/arm/xm-linux.h.
>    create the symbolic link nm.h to point to
> <SRCDIR>/gdb/config/arm/nm-linux.h.
>    edit ../config.h and change the line:
> 	/* #undef GDB_NM_FILE */
>       to
> 	#define GDB_NM_FILE config/arm/tm-linux.h
> 
>   set the environment variable CC to point to your arm-linux compiler, e.g.
> 	CC=arm-linux-gcc
> 	export CC
>   and finally run make.
> 
> This is a bit of a hack, but it saves you having to cross-build all of gdb
> just to get gdbserver built for your target system.
> 
> 
> Keith
> Keith Walker		keith.walker@arm.com		Tel:+44 (1628) 427732
> ARM Ltd		http://www.arm.com
> 

-- 
Bill Gatliff
bgat@billgatliff.com


  parent reply	other threads:[~2002-01-31 21:36 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 [this message]
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

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=20020131153627.A3137@saturn.billgatliff.com \
    --to=bgat@billgatliff.com \
    --cc=Keith.Walker@arm.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