pike.git
/
src
/
program.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/program.c:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: program.c,v 1.
593
2005/06/
09
09
:
25
:
11
grubba Exp $
+
|| $Id: program.c,v 1.
594
2005/06/
23
13
:
33
:
03
grubba Exp $
*/ #include "global.h" #include "program.h" #include "object.h" #include "dynamic_buffer.h" #include "pike_types.h" #include "stralloc.h" #include "las.h" #include "lex.h"
pike.git/src/program.c:5961:
fromold: if(off > offset) break; line+=get_small_number(&cnt); } linep[0]=line; if (file) { struct pike_string *res = begin_wide_shared_string(len, shift); memcpy(res->str, file, len<<shift); return end_shared_string(res); }
+
} else {
+
fprintf(stderr, "Bad offset: pc:%p program:%p (%p)\n",
+
pc, prog->program, (void *)prog->num_program);
}
-
+
} else {
+
fprintf(stderr, "No program of linenumbers program:%p linenumbers:%p\n",
+
prog->program, prog->linenumbers);
} return NULL; } /* This is to low_get_line as low_get_program_line_plain is to * low_get_program_line. */ PMOD_EXPORT char *low_get_line_plain (PIKE_OPCODE_T *pc, struct program *prog, INT32 *linep, int malloced) {
pike.git/src/program.c:8222:
Inside #if 0
(void *)p->program, (unsigned long)(p->num_program*sizeof(p->program[0])), addr, len, PROT_EXEC | PROT_READ | PROT_WRITE, errno); #endif /* 0 */ } #endif /* _WIN32 */
-
#ifdef FLUSH_INSTRUCTION_CACHE
+
#ifdef
HAVE_SYNC_INSTRUCTION_MEMORY
+
sync_instruction_memory(p->program,
+
p->num_program*sizeof(p->program[0]));
+
#elif defined(
FLUSH_INSTRUCTION_CACHE
)
FLUSH_INSTRUCTION_CACHE(p->program, p->num_program*sizeof(p->program[0]));
-
#endif /* FLUSH_INSTRUCTION_CACHE */
+
#endif /*
HAVE_SYNC_INSTRUCTION_MEMORY ||
FLUSH_INSTRUCTION_CACHE */
} #endif