Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Kevin Squail Endres <kevine@wildseed.com>
Cc: 'Kevin Buettner' <kevinb@redhat.com>,
	"'Richard.Earnshaw@arm.com '" <Richard.Earnshaw@arm.com>,
	"'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: Re: cross targeted gdb and corefiles
Date: Fri, 17 May 2002 08:06:00 -0000	[thread overview]
Message-ID: <20020517150620.GA8511@nevyn.them.org> (raw)
In-Reply-To: <43CB1396676FD4119F03001083FD2994F5F229@neptune.kirkland.local>

On Thu, May 16, 2002 at 04:28:33PM -0700, Kevin Squail Endres wrote:
> Yep - shot the last mail off before thinking it all through (sorries!!) -
> Thanks for the help! (Got it all working!!)
> 
> TO RECAP: 
> My environment - i386 host - ARM target (both running linux)
> 
> goal - read target core files with cross targeted debugger in host
> environment.
> 
> SOLUTION:
> 1) configure cross gdb
> 2) add corelow.o and core-regset.o to TDEPFILES in gdb's Makefile
> 3) copy supply_* and nwfpe* functions and relevant structures (F11A etc)
> from arm-linux-nat.c to arm-linux-tdep.c
> 4) remove system headers from arm-linux-tdep.c and core-regset.h (so not
> using system register defs in gregset.h)
> 5) edit gregset.h - add the following (at the top): (i just copied and
> synthisized from appt headers)
> 
> typedef  unsigned long elf_greg_t;
> typedef  elf_greg_t gregset[18];
> typedef struct {void *null } fpregset_t;

ARM folks - what's up with that void *null anyway?  <sys/procfs.h> has
a more relevant elf_fpregset_t, but I don't know if/how the kernel dumps
FPU registers; if it does it along the lines of that regset, nothing
makes sense...

> 
> 6) make
> 
> After getting environment set up same as required for remote debugging.
> 
> 7) gdb app
> 8) (gdb) set solib-absolute-prefix /targetloc
> 9) (gdb) target core core
> 
> and all works as expected!!!
> 
> Help is much appreciated - you guys rule!
> 
> :]k
> -----Original Message-----
> From: Kevin Buettner [mailto:kevinb@redhat.com]
> Sent: Thursday, May 16, 2002 4:17 PM
> To: Kevin "Squail" Endres; 'Kevin Buettner'; 'Daniel Jacobowitz';
> 'Richard.Earnshaw@arm.com '
> Cc: 'gdb@sources.redhat.com'
> Subject: Re: cross targeted gdb and corefiles
> 
> 
> On May 16,  4:05pm, Kevin \Squail\ Endres wrote:
> 
> > I know i have to set so-absolute-prefix to my libs to get everything to
> live
> > correctly... How do i do that and read in a core???
> 
> Can't you do...
> 
>     (gdb) set solib-absolute-prefix /my/prefix/to/the/sys-root
>     (gdb) target core core
> 
> ?
> 
> Kevin
> 

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-05-17 15:06 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-16 16:28 Kevin "Squail" Endres
2002-05-17  8:06 ` Daniel Jacobowitz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-16 17:18 Kevin "Squail" Endres
2002-05-16 16:05 Kevin "Squail" Endres
2002-05-16 16:17 ` Kevin Buettner
2002-05-16 15:56 Kevin "Squail" Endres
2002-05-16 15:55 Kevin "Squail" Endres
2002-05-16 15:43 Kevin "Squail" Endres
2002-05-16 15:53 ` Kevin Buettner
2002-05-16 15:28 Kevin "Squail" Endres
2002-05-16 15:33 ` Kevin Buettner
2002-05-16 15:01 Kevin "Squail" Endres
2002-05-16 15:23 ` Kevin Buettner
2002-05-16 16:18   ` Jason R Thorpe
2002-05-17  8:20 ` Richard Earnshaw
2002-05-16 11:35 Kevin "Squail" Endres
2002-05-16 10:28 Kevin "Squail" Endres
2002-05-16 10:10 Kevin "Squail" Endres
2002-05-16 10:25 ` Richard Earnshaw
2002-05-16 11:07   ` Daniel Jacobowitz

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=20020517150620.GA8511@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@redhat.com \
    --cc=kevine@wildseed.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