On Sat, Nov 28, 2009 at 08:29:43AM +0900, enami tsugutomo 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
>
> Is initializing it in main() too late? I mean putting proc0paddr =
> lwp_getpcb(&lwp0) at the beginning of main().
The above is defining a global symbol that referes to the middle of
a struct, not setting a memory location to the address of the it.
David
--
David Laight: [email protected]