This is the mail archive of the
mailing list for the GDB project.
Re: Definition of PT_TEXT_ADDR and friends.
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
> > 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
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.