This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [rfc][1/3] Remote core file generation: BFD support


> 
> Hello,
> 
> when implementing support for core file generation with remote targets
> in GDB I ran into the problem that the elfcore_write_prpsinfo and
> elfcore_write_prstatus are only defined for native targets.  This is
> even though they could be implemented for remote targets if the
> back-end provides the backend_write_core_note callback.
> 
> The following patch provides those functions unconditionally, so that
> they can use the back-end callback if present, and return NULL to
> signal failure if the callback is not available.
> 
> The patch in addition implements the callback for ARM Linux.

There's a bit of a problem with this diff.  You're installing the
callback into the generic ARM vector, but the notes you're writing out
are (almost certainly) Linux-specific.


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