This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: [PATCH] PAGE_SIZE definition for MIPS XLP


On Mon, 18 Nov 2013, Andreas Schwab wrote:

> > The attached patch makes the definition conditional, rather than removing
> > it completely. It's not clear to me whether the HOST_* definitions are
> > similarly affected, but other platforms that do not define PAGE_SIZE also
> > choose not to define those, so I've extended the ifndef similarly.
> 
> These definitions are used by gdb for trad-core support.  Does MIPS
> support trad-core?

 I don't think it does, not at least on Linux where ELF has been ever used 
only (and ECOFF compatibility ABI never implemented), but as a side note 
trad-core has this:

#ifndef NBPG
# define NBPG getpagesize()
#endif

so it seems to be broken anyway for non-native cases.  I'd expect the page 
size in a core file to match that used by the kernel while the process was 
still alive, so it would have to be figured out from the core binary being 
handled somehow if at all possible; otherwise a user-supplied parameter.

  Maciej


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