This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cross-debugging of userland core files, nat -> tdep


On Wed, Apr 10, 2002 at 07:12:29PM -0700, Jason R Thorpe wrote:
> On Wed, Apr 10, 2002 at 09:58:24PM -0400, Daniel Jacobowitz wrote:
> 
>  > Hit the nail on the head.  I believe I've gotten BFD to understand ELF
>  > core files appropriately for a fair number of targets; you may need to
>  > add a platform-specific chunk to all the ones I didn't get to.  Then
>  > move supply_* out of the nat files, and link in the core code.
> 
> Okay, cool.
> 
> BTW, all of NetBSD's ELF core file handling is in bfd/elf.c.  It
> doesn't require any platform-specific handling except one small
> switch statement to comute the note type number correctly for
> various arch's, which is in elfcore_grok_netbsd_note().

Thus the "may" :)

>  > Now, if you've got time, there's a much better way to do this.  The
>  > "magic" supply_* and fetch_* names need to go; we should instead have a
>  > table of regset types, sizes, and fetch/supply functions.  I just
>  > haven't gotten around to actually doing that.
> 
> Heh, you said "time" :-)

Yeah, I know, I know.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]