74 if(
trace)
werrstr(
"s.init %p-%p, fde %p-%p\n",
s.init.p,
s.init.ep, fde.
p, fde.
ep);
97 for(
i=0;
i<
s.nstack;
i++)
119 if(
d->frame.data ==
nil){
120 werrstr(
"no frame debugging information");
125 b.ep =
b.p +
d->frame.len;
126 b.addrsize =
d->addrsize;
131 if((
i = (
b.p -
d->frame.data) %
b.addrsize))
132 b.p +=
b.addrsize -
i;
135 werrstr(
"bad length in cie/fde header");
140 if(
id == 0xFFFFFFFF){
142 if(vers != 1 && vers != 2 && vers != 3){
144 werrstr(
"unknown cie version %d (wanted 1-3)\n", vers);
150 werrstr(
"unknown augmentation: %s\n", aug);
156 if(
s->rareg >
s->nr){
157 werrstr(
"return address is register %d but only have %d registers",
174 werrstr(
"cannot find call frame information for pc 0x%lux", pc);
182 if(r < 0 || r >=
s->nr){
183 werrstr(
"bad register number 0x%lux",
r);
204 werrstr(
"ran out of instructions during cfa program");
214 s->loc +=
arg1 *
s->iquantum;
304 void *newstack =
malloc(
s->nstack*
sizeof(
s->stack[0]));
317 s->stack[
s->nstack++] =
e;
324 werrstr(
"restore state underflow");
327 e =
s->stack[
s->nstack-1];
342 s->cfa->offset =
arg2;
349 werrstr(
"change CFA register but CFA not in register+offset form");
362 werrstr(
"change CFA offset but CFA not in register+offset form");
365 s->cfa->offset =
arg1;
400 werrstr(
"unknown opcode 0x%ux in cfa program",
c);
_STLP_MOVE_TO_STD_NAMESPACE void _STLP_CALL advance(_InputIterator &__i, _Distance __n)
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
GLuint GLuint GLuint GLuint arg1
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
GLboolean GLboolean GLboolean b
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memmove(s1, s2, n)
static unsigned __int64 next
static int findfde(Dwarf *, ulong, State *, DwarfBuf *)
static int checkreg(State *s, long r)
int dwarfunwind(Dwarf *d, ulong pc, DwarfExpr *cfa, DwarfExpr *ra, DwarfExpr *r, int nr)
static int dexec(DwarfBuf *, State *, int)
ulong dwarfget128(DwarfBuf *)
ulong dwarfget2(DwarfBuf *)
char * dwarfgetstring(DwarfBuf *)
ulong dwarfget1(DwarfBuf *)
long dwarfget128s(DwarfBuf *)
ulong dwarfgetaddr(DwarfBuf *)
uchar * dwarfgetnref(DwarfBuf *, ulong)
ulong dwarfget4(DwarfBuf *)
#define RtlMoveMemory(Destination, Source, Length)