46 int i,
first, firstline,
op,
a,
l, quantum, isstmt, linebase, linerange, opcodebase, nf;
64 werrstr(
"no line mapping information for 0x%x", pc);
68 if(off >=
d->line.len){
77 b.p =
d->line.data + off;
78 b.ep =
b.p +
d->line.len;
90 werrstr(
"bad dwarf version 0x%x", vers);
121 while(
b.p!=
nil && *
b.p!=0){
147 if(
trace)
werrstr(
"program @ %lu ... %.*H opbase = %d",
b.p -
d->line.data,
b.ep-
b.p,
b.p, opcodebase);
153 if(
op >= opcodebase){
154 a = (
op - opcodebase) / linerange;
155 l = (
op - opcodebase) % linerange + linebase;
157 cur.addr +=
a * quantum;
162 werrstr(
"found wrong line mapping 0x%x for pc 0x%x",
cur.addr, pc);
172 if(
cur.addr > pc && !firstline)
175 werrstr(
"buffer underflow in line mapping");
180 werrstr(
"found wrong line mapping 0x%x-0x%x for pc 0x%x",
start,
cur.addr, pc);
202 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");
323 for (
x = 1;
b.p && *
b.p;
x++) {
328 if (!cdir && dwarfdir)
349 proc->attrs.have.name)
351 if (
proc->attrs.lowpc <= pc &&
proc->attrs.highpc > pc) {
371 proc->attrs.have.name &&
374 if (
proc->attrs.declline <= *
line &&
375 proc->attrs.declline > lastline) {
381 lastline =
proc->attrs.declline;
392 werrstr(
"corrupted line mapping for 0x%x", pc);
int dwarfaddrtounit(Dwarf *, ulong, ulong *)
int dwarfnextsym(Dwarf *, DwarfSym *)
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
char * dwarfgetstring(DwarfBuf *)
ulong dwarfget4(DwarfBuf *)
int dwarfnextsymat(Dwarf *, DwarfSym *, int)
GLint GLint GLint GLint GLint x
#define RtlMoveMemory(Destination, Source, Length)
ulong dwarfget1(DwarfBuf *)
png_const_structrp png_const_inforp int * unit
struct DwarfAttrs::@4749 have
int dwarfenumunit(Dwarf *, ulong, DwarfSym *)
GLboolean GLboolean GLboolean b
long dwarfget128s(DwarfBuf *)
ulong dwarfget2(DwarfBuf *)
ulong dwarfget128(DwarfBuf *)
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
uchar * dwarfgetnref(DwarfBuf *, ulong)
char * strcpy(char *DstString, const char *SrcString)
GLboolean GLboolean GLboolean GLboolean a
int dwarflookuptag(Dwarf *, ulong, ulong, DwarfSym *)
ulong dwarfgetaddr(DwarfBuf *)