Definition of PT_TEXT_ADDR and friends.

Josef Wolf jw@raven.inka.de
Wed Mar 21 17:50:00 GMT 2007


On Wed, Mar 21, 2007 at 07:16:57AM -0400, Daniel Jacobowitz wrote:
> On Wed, Mar 21, 2007 at 08:14:12AM +0100, Josef Wolf wrote:

> > At least for uClinux, ptrace() is hardwired to the same values as in
> > linux-low.c.
> 
> For all architectures, really?  I'm surprised.

I was confused, so don't be surprised :-)  Every architecture has its
own implementation.

> > So probably the comment is right and the defined should
> > be moved into uClinux's uc0-patch.  But I don't see why the dependency
> > on uclibc define.
> 
> uClibc or the kernel.  It's not GDB's business to keep track of that.

I don't see how uclibc can provide them without kernel support.

> > > (I know the __UCLIBC_HAS_MMU__ is out of date - I'm going to fix that
> > > today)
> > 
> > Hmmm, what's the correct way to find out whether the cpu has mmu without
> > uclibc?  How does uclibc find out?
> 
> You configure it :-)  But they've renamed the configuration macro
> recently.

Shouldn't the kernel headers provide some appropriate macro?  There seem
to exist a CONFIG_MMU macro, but this is only checked and never set.



More information about the Gdb mailing list