53 int i,
first, firstline,
op,
a,
l, quantum, isstmt, linebase, linerange, opcodebase, nf;
67 werrstr(
"no line mapping information for 0x%x", pc);
71 if(off >=
d->line.len){
80 b.p =
d->line.data + off;
81 b.ep =
b.p +
d->line.len;
93 werrstr(
"bad dwarf version 0x%x", vers);
124 while(
b.p!=
nil && *
b.p!=0){
150 if(
trace)
werrstr(
"program @ %lu ... %.*H opbase = %d\n",
b.p -
d->line.data,
b.ep-
b.p,
b.p, opcodebase);
156 if(
op >= opcodebase){
157 a = (
op - opcodebase) / linerange;
158 l = (
op - opcodebase) % linerange + linebase;
160 cur.addr +=
a * quantum;
165 werrstr(
"found wrong line mapping 0x%x for pc 0x%x",
cur.addr, pc);
175 if(
cur.addr > pc && !firstline)
178 werrstr(
"buffer underflow in line mapping");
183 werrstr(
"found wrong line mapping 0x%x-0x%x for pc 0x%x",
start,
cur.addr, pc);
205 newf =
malloc(nf+1*
sizeof(
f[0]));
228 cur.addr +=
a * quantum;
252 a = (255 - opcodebase) / linerange * quantum;
275 for(
i=0;
i<opcount[
op];
i++)
287 werrstr(
"invalid file index in mapping data");
302 werrstr(
"problem parsing file data second time (cannot happen)");
307 werrstr(
"bad file index in mapping data");
330 for (
x = 1;
b.p && *
b.p;
x++)
344 proc.attrs.have.name &&
347 proc.attrs.declline > lastline) {
348 lastline =
proc.attrs.declline;
358 for (
i = 0;
i <
d->pe->nsymbols;
i++) {
359 if (
d->pe->symtab[
i].address > lastaddr &&
360 d->pe->symtab[
i].address <= pc -
d->pe->imagebase &&
361 d->pe->symtab[
i].address <
d->pe->imagesize) {
362 lastaddr =
d->pe->symtab[
i].address;
363 *function =
d->pe->symtab[
i].
name;
380 werrstr(
"corrupted line mapping for 0x%x", pc);
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
GLint GLint GLint GLint GLint x
GLboolean GLboolean GLboolean b
GLuint GLsizei GLsizei * length
GLboolean GLboolean GLboolean GLboolean a
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
png_const_structrp png_const_inforp int * unit
int dwarfpctoline(Dwarf *d, ulong pc, char **cdir, char **dir, char **file, char **function, ulong *line, ulong *mtime, ulong *length)
ulong dwarfget128(DwarfBuf *)
ulong dwarfget2(DwarfBuf *)
int dwarfenumunit(Dwarf *, ulong, DwarfSym *)
int dwarflookuptag(Dwarf *, ulong, ulong, DwarfSym *)
int dwarflookupfn(Dwarf *, ulong, ulong, DwarfSym *)
char * dwarfgetstring(DwarfBuf *)
ulong dwarfget1(DwarfBuf *)
long dwarfget128s(DwarfBuf *)
ulong dwarfgetaddr(DwarfBuf *)
uchar * dwarfgetnref(DwarfBuf *, ulong)
int dwarfaddrtounit(Dwarf *, ulong, ulong *)
int dwarfnextsymat(Dwarf *, DwarfSym *, int)
ulong dwarfget4(DwarfBuf *)
struct DwarfAttrs::@4743 have
#define RtlMoveMemory(Destination, Source, Length)