Source-Changes-D archive

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

Re: CVS commit: src/gnu/dist/gdb6/gdb



On Fri, Nov 27, 2009 at 12:45:18AM -0800, Matt Thomas wrote:
> 
> > i wonder if we can re-add proc0paddr, defined to be = lwp0.l_addr
> > at some point in main, to help this work with older gdb?
> > 
> > this seems like a worth-while change since it's part of bsd-kvm.c.
> 
> would need to be in md code since L_ADDR needs to come from assym.h.
> 
>       .globl  _C_LABEL(proc0paddr)
> _C_LABEL(proc0paddr) = _C_LABEL(lwp0) + L_ADDR

Actually I think it might be possibly to do it in a MI .c file!

Some __asm pattern being passed offsetof(struct lwp, l_addr) generating
a global symbol.
One of the forms for defining a symbol is MI.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index