Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB arm-netbsd build failure.
@ 2002-01-09 11:45 Richard Earnshaw
  2002-01-09 12:43 ` Michael Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Earnshaw @ 2002-01-09 11:45 UTC (permalink / raw)
  To: msnyder, gdb; +Cc: Richard.Earnshaw


Michael,

Your latest patch

2002-01-03  Michael Snyder  <msnyder@redhat.com>

        Implement a "generate-core-file" command in gdb, save target state.

breaks any target that doesn't use ELF, since it calls a BFD function that 
is only compiled in for ELF support.

Specifically, it directly uses elfcore_write_prpsinfo which is in bfd/elf.c

Isn't there supposed to be a way of wrapping such calls through a BFD 
layer to make them format independent.  If not, then this call should only 
be made if we know that we are using ELF.

R.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB arm-netbsd build failure.
  2002-01-09 11:45 GDB arm-netbsd build failure Richard Earnshaw
@ 2002-01-09 12:43 ` Michael Snyder
  2002-01-10  6:21   ` Richard Earnshaw
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2002-01-09 12:43 UTC (permalink / raw)
  To: Richard.Earnshaw; +Cc: gdb

Richard Earnshaw wrote:
> 
> Michael,
> 
> Your latest patch
> 
> 2002-01-03  Michael Snyder  <msnyder@redhat.com>
> 
>         Implement a "generate-core-file" command in gdb, save target state.
> 
> breaks any target that doesn't use ELF, since it calls a BFD function that
> is only compiled in for ELF support.
> 
> Specifically, it directly uses elfcore_write_prpsinfo which is in bfd/elf.c
> 
> Isn't there supposed to be a way of wrapping such calls through a BFD
> layer to make them format independent.  If not, then this call should only
> be made if we know that we are using ELF.

Yes, I checked in a fix for that this morning.  
If you update and it still doesn't work, please let me know.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB arm-netbsd build failure.
  2002-01-09 12:43 ` Michael Snyder
@ 2002-01-10  6:21   ` Richard Earnshaw
  2002-01-10  6:30     ` Richard Earnshaw
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Earnshaw @ 2002-01-10  6:21 UTC (permalink / raw)
  To: Michael Snyder; +Cc: Richard.Earnshaw, gdb

> Yes, I checked in a fix for that this morning.  
> If you update and it still doesn't work, please let me know.

That problem is now solved, thanks.  But there is another one.

An arm-elf cross build now fails when building opcodes/arm-dis.c since the 
one of the prototypes you added in elf-bfd.h uses pid_t, which isn't 
defined at that point.

R.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB arm-netbsd build failure.
  2002-01-10  6:21   ` Richard Earnshaw
@ 2002-01-10  6:30     ` Richard Earnshaw
  2002-01-10  9:25       ` Michael Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Earnshaw @ 2002-01-10  6:30 UTC (permalink / raw)
  To: Michael Snyder; +Cc: Richard.Earnshaw, gdb, binutils

> An arm-elf cross build now fails when building opcodes/arm-dis.c since the 
> one of the prototypes you added in elf-bfd.h uses pid_t, which isn't 
> defined at that point.

Hmm, thinking about it, pid_t is a very Unix-centric type anyway; so it is 
somewhat dubious that this appears at all in the BFD libraries.

R.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB arm-netbsd build failure.
  2002-01-10  6:30     ` Richard Earnshaw
@ 2002-01-10  9:25       ` Michael Snyder
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2002-01-10  9:25 UTC (permalink / raw)
  To: Richard.Earnshaw; +Cc: gdb, binutils

Richard Earnshaw wrote:
> 
> > An arm-elf cross build now fails when building opcodes/arm-dis.c since the
> > one of the prototypes you added in elf-bfd.h uses pid_t, which isn't
> > defined at that point.
> 
> Hmm, thinking about it, pid_t is a very Unix-centric type anyway; so it is
> somewhat dubious that this appears at all in the BFD libraries.

You're right -- I'll change the function signiture.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-01-10 17:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 11:45 GDB arm-netbsd build failure Richard Earnshaw
2002-01-09 12:43 ` Michael Snyder
2002-01-10  6:21   ` Richard Earnshaw
2002-01-10  6:30     ` Richard Earnshaw
2002-01-10  9:25       ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox