52 int i,
first, firstline,
op,
a,
l, quantum, isstmt, linebase, linerange, opcodebase, nf;
66 werrstr(
"no line mapping information for 0x%x", pc);
70 if(off >=
d->line.len){
79 b.p =
d->line.data + off;
80 b.ep =
b.p +
d->line.len;
92 werrstr(
"bad dwarf version 0x%x", vers);
123 while(
b.p!=
nil && *
b.p!=0){
149 if(
trace)
werrstr(
"program @ %lu ... %.*H opbase = %d\n",
b.p -
d->line.data,
b.ep-
b.p,
b.p, opcodebase);
155 if(
op >= opcodebase){
156 a = (
op - opcodebase) / linerange;
157 l = (
op - opcodebase) % linerange + linebase;
159 cur.addr +=
a * quantum;
164 werrstr(
"found wrong line mapping 0x%x for pc 0x%x",
cur.addr, pc);
174 if(
cur.addr > pc && !firstline)
177 werrstr(
"buffer underflow in line mapping");
182 werrstr(
"found wrong line mapping 0x%x-0x%x for pc 0x%x",
start,
cur.addr, pc);
204 newf =
malloc(nf+1*
sizeof(
f[0]));
227 cur.addr +=
a * quantum;
251 a = (255 - opcodebase) / linerange * quantum;
274 for(
i=0;
i<opcount[
op];
i++)
286 werrstr(
"invalid file index in mapping data");
301 werrstr(
"problem parsing file data second time (cannot happen)");
306 werrstr(
"bad file index in mapping data");
329 for (
x = 1;
b.p && *
b.p;
x++)
343 proc.attrs.have.name &&
346 proc.attrs.declline > lastline) {
347 lastline =
proc.attrs.declline;
357 for (
i = 0;
i <
d->pe->nsymbols;
i++) {
358 if (
d->pe->symtab[
i].address > lastaddr &&
359 d->pe->symtab[
i].address <= pc -
d->pe->imagebase &&
360 d->pe->symtab[
i].address <
d->pe->imagesize) {
361 lastaddr =
d->pe->symtab[
i].address;
362 *function =
d->pe->symtab[
i].
name;
379 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::@4963 have
#define RtlMoveMemory(Destination, Source, Length)