#include <precomp.h>
#include <debug.h>
Go to the source code of this file.
|
static int | parseabbrevs (Dwarf *, ulong, DwarfAbbrev *, DwarfAttr *, int *, int *) |
|
DwarfAbbrev * | dwarfgetabbrev (Dwarf *, ulong, ulong) |
|
static int | loadabbrevs (Dwarf *d, ulong off, DwarfAbbrev **aa) |
|
static DwarfAbbrev * | findabbrev (DwarfAbbrev *a, int na, ulong num) |
|
◆ NDEBUG
◆ dwarfgetabbrev()
Definition at line 125 of file dwarfabbrev.c.
126{
128 int na;
133 }
135}
GLboolean GLboolean GLboolean GLboolean a
static DwarfAbbrev * findabbrev(DwarfAbbrev *a, int na, ulong num)
static int loadabbrevs(Dwarf *d, ulong off, DwarfAbbrev **aa)
Referenced by dwarfnextsym().
◆ findabbrev()
Definition at line 111 of file dwarfabbrev.c.
112{
114
115 for(
i=0;
i<na;
i++) {
118 }
119 }
120 werrstr(
"abbrev not found (%x)", na);
122}
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
◆ loadabbrevs()
Definition at line 18 of file dwarfabbrev.c.
19{
20 int nattr, nabbrev;
23
24 if(
d->acache.off == off &&
d->acache.na){
27 }
28
29
31 return -1;
32 }
33
36
39 return -1;
40 }
41
44 d->acache.na = nabbrev;
46
47 *aa = abbrev;
48 return nabbrev;
49}
static int parseabbrevs(Dwarf *, ulong, DwarfAbbrev *, DwarfAttr *, int *, int *)
◆ parseabbrevs()
Definition at line 52 of file dwarfabbrev.c.
53{
54 int i, nabbrev, nattr, haskids;
57
58 if(off >=
d->abbrev.len){
59 werrstr(
"bad abbrev section offset 0x%lux >= 0x%lux", off,
d->abbrev.len);
60 return -1;
61 }
62
64 b.p =
d->abbrev.data + off;
65 b.ep =
d->abbrev.data +
d->abbrev.len;
66
67 nabbrev = 0;
68 nattr = 0;
69 for(;;){
71 werrstr(
"malformed abbrev data");
72 return -1;
73 }
76 break;
85 break;
89 }
90 }
91 if(abbrev){
97 abbrev++;
99 }
100 nabbrev++;
102 }
103 if(pnabbrev)
104 *pnabbrev = nabbrev;
105 if(pnattr)
106 *pnattr = nattr;
107 return 0;
108}
GLboolean GLboolean GLboolean b
ulong dwarfget128(DwarfBuf *)
ulong dwarfget1(DwarfBuf *)