73 if(
trace)
werrstr(
"s.init %p-%p, fde %p-%p\n",
s.init.p,
s.init.ep, fde.
p, fde.
ep);
96 for(
i=0;
i<
s.nstack;
i++)
118 if(
d->frame.data ==
nil){
119 werrstr(
"no frame debugging information");
124 b.ep =
b.p +
d->frame.len;
125 b.addrsize =
d->addrsize;
130 if((
i = (
b.p -
d->frame.data) %
b.addrsize))
131 b.p +=
b.addrsize -
i;
134 werrstr(
"bad length in cie/fde header");
139 if(
id == 0xFFFFFFFF){
141 if(vers != 1 && vers != 2 && vers != 3){
143 werrstr(
"unknown cie version %d (wanted 1-3)\n", vers);
149 werrstr(
"unknown augmentation: %s\n", aug);
155 if(
s->rareg >
s->nr){
156 werrstr(
"return address is register %d but only have %d registers",
173 werrstr(
"cannot find call frame information for pc 0x%lux", pc);
181 if(r < 0 || r >=
s->nr){
182 werrstr(
"bad register number 0x%lux",
r);
203 werrstr(
"ran out of instructions during cfa program");
213 s->loc +=
arg1 *
s->iquantum;
303 void *newstack =
malloc(
s->nstack*
sizeof(
s->stack[0]));
316 s->stack[
s->nstack++] =
e;
323 werrstr(
"restore state underflow");
326 e =
s->stack[
s->nstack-1];
341 s->cfa->offset =
arg2;
348 werrstr(
"change CFA register but CFA not in register+offset form");
361 werrstr(
"change CFA offset but CFA not in register+offset form");
364 s->cfa->offset =
arg1;
399 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)