tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh3 mcontext change



[trimming distribution to tech-toolchain@]

On Wed, Jun 04, 2008 at 22:09:03 +0100, David Laight wrote:

> On Sun, Jun 01, 2008 at 05:57:30AM +0400, Valeriy E. Ushakov wrote:
> > 
> > Anything *else* I'm missing?
> 
> gdb ?
>
> It probably has it's own private definition of (one of) the register
> layouts, with nothing at all anywhere to help you cross link the
> definitions.

gdb uses ptrace, so versioning PT_{GET,SET}REGS should take care of
that (old binaries will work with new kernels).  Plus gdb will have to
be taught about the new field in struct reg that is available if
PT_OLD{GET,SET}REGS are defined (i.e. when PT_{GET,SET}REGS returns a
new, bigger struct reg) so that new gdb sources can be compiled
against both old and new headers.

SY, Uwe
-- 
uwe%stderr.spb.ru@localhost                       |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen


Home | Main Index | Thread Index | Old Index