This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Definition of PT_TEXT_ADDR and friends.


On Tue, Mar 20, 2007 at 06:56:18AM -0400, Daniel Jacobowitz wrote:
> On Tue, Mar 20, 2007 at 07:44:56AM +0100, Josef Wolf wrote:

> > When compiling gdb for uClinux with armnommu, I noticed that (in
> > linux-low.c) PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR are
> > defined only when __mcoldfire__ is defined.  I think this is wrong.
> > Instead, IMHO, it should always be defined when we have linux without
> > a mmu.
> > 
> > Comments?
> 
> /* These should really be defined in the kernel's ptrace.h header.  */
> 
> We don't know what to define them _to_ on other platforms.  If you
> have another platform which fails to define them in the kernel
> headers, we can add another case.

At least for uClinux, ptrace() is hardwired to the same values as in
linux-low.c.  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.

> (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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]