зеркало из https://github.com/mozilla/gecko-dev.git
Updating for the Neutrino Platform. Not finished yet, still looking
for the "pcs" memmber in the malloc_log_entry structure.
This commit is contained in:
Родитель
2474de4e75
Коммит
e4d2d945fd
|
@ -67,11 +67,11 @@ static void writeStrStdout(const char* str)
|
|||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#if defined(i386)
|
||||
#if defined(i386) || defined(_i386)
|
||||
static void CrawlStack(malloc_log_entry* me, jmp_buf jb, char* first)
|
||||
{
|
||||
#ifdef NTO
|
||||
u_long* bp = (u_long*) (jb[0].__savearea[JB_BP]);
|
||||
u_long* bp = (u_long*) (jb[0].__jmpbuf_un.__savearea[JB_BP]);
|
||||
#else
|
||||
u_long* bp = (u_long*) (jb[0].__jmpbuf[JB_BP]);
|
||||
#endif
|
||||
|
@ -155,7 +155,11 @@ Log(u_long aTime, char *first)
|
|||
setjmp(jb);
|
||||
CrawlStack(&me, jb, first);
|
||||
|
||||
#ifndef NTO
|
||||
write(gLogFD, &me, offsetof(malloc_log_entry, pcs) + me.numpcs*sizeof(char*));
|
||||
#else
|
||||
printf("Neutrino is missing the pcs member of malloc_log_entry!! \n");
|
||||
#endif
|
||||
}
|
||||
|
||||
static int realTime = 0;
|
||||
|
|
|
@ -67,11 +67,11 @@ static void writeStrStdout(const char* str)
|
|||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#if defined(i386)
|
||||
#if defined(i386) || defined(_i386)
|
||||
static void CrawlStack(malloc_log_entry* me, jmp_buf jb, char* first)
|
||||
{
|
||||
#ifdef NTO
|
||||
u_long* bp = (u_long*) (jb[0].__savearea[JB_BP]);
|
||||
u_long* bp = (u_long*) (jb[0].__jmpbuf_un.__savearea[JB_BP]);
|
||||
#else
|
||||
u_long* bp = (u_long*) (jb[0].__jmpbuf[JB_BP]);
|
||||
#endif
|
||||
|
@ -155,7 +155,11 @@ Log(u_long aTime, char *first)
|
|||
setjmp(jb);
|
||||
CrawlStack(&me, jb, first);
|
||||
|
||||
#ifndef NTO
|
||||
write(gLogFD, &me, offsetof(malloc_log_entry, pcs) + me.numpcs*sizeof(char*));
|
||||
#else
|
||||
printf("Neutrino is missing the pcs member of malloc_log_entry!! \n");
|
||||
#endif
|
||||
}
|
||||
|
||||
static int realTime = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче