This is the mail archive of the 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: core regs vs. proc-service regs mess

From: Daniel Jacobowitz <>
Date: Wed, 5 Apr 2006 09:23:00 -0400

> On Wed, Apr 05, 2006 at 10:25:21AM +0200, Mark Kettenis wrote:
> > >  This is completely contradictory, and I don't have any idea how to
> > >  cleanly resolve this outside of duplicating the entirety of
> > >  linux_nat_make_corefile_notes() on Linux/Sparc which is silly.
> > >
> > >  Daniel any ideas? :-) Maybe we can have a "linux_tdep" struct where we
> > >  can place a "->to_fill_core_gregset()" type method or similar?
> > 
> > What really should happen is to convert linux_nat_make_corefile_notes() to
> > use the regset_from_core_section() interface.  Unfortunately that is quite
> > a bit of work since most Linux targets don't provide that interface yet.
> Shouldn't this be pretty simple: gdbarch_regset_from_core_section_p?

I'll work on converting the Linux/Sparc targets over to the
regset_from_core_section() interface.

Then I'll give the linux_nat_make_corefile_notes() change a
try with the test that Daniel is suggesting here to decide
how to get at the core regs.

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