#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <ntimage.h>
#include <debug.h>
#include "dwarf.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 128 of file dwarfabbrev.c.
129{
131 int na;
132
136 }
138}
GLboolean GLboolean GLboolean GLboolean a
static DwarfAbbrev * findabbrev(DwarfAbbrev *a, int na, ulong num)
static int loadabbrevs(Dwarf *d, ulong off, DwarfAbbrev **aa)
◆ findabbrev()
Definition at line 116 of file dwarfabbrev.c.
117{
119
125}
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
Referenced by dwarfgetabbrev().
◆ loadabbrevs()
Definition at line 25 of file dwarfabbrev.c.
26{
27 int nattr, nabbrev;
30
31 if(
d->acache.off == off &&
d->acache.na){
34 }
35
36
38 return -1;
39 }
40
43
46 return -1;
47 }
48
51 d->acache.na = nabbrev;
53
54 *aa = abbrev;
55 return nabbrev;
56}
static int parseabbrevs(Dwarf *, ulong, DwarfAbbrev *, DwarfAttr *, int *, int *)
Referenced by dwarfgetabbrev().
◆ parseabbrevs()
Definition at line 59 of file dwarfabbrev.c.
60{
61 int i, nabbrev, nattr, haskids;
64
65 if(off >=
d->abbrev.len){
66 werrstr(
"bad abbrev section offset 0x%lux >= 0x%lux\n", off,
d->abbrev.len);
67 return -1;
68 }
69
71 b.p =
d->abbrev.data + off;
72 b.ep =
d->abbrev.data +
d->abbrev.len;
73
74 nabbrev = 0;
75 nattr = 0;
76 for(;;){
78 werrstr(
"malformed abbrev data");
79 return -1;
80 }
83 break;
90 break;
94 }
95 }
96 if(abbrev){
102 abbrev++;
104 }
105 nabbrev++;
107 }
108 if(pnabbrev)
109 *pnabbrev = nabbrev;
110 if(pnattr)
111 *pnattr = nattr;
112 return 0;
113}
GLboolean GLboolean GLboolean b
ulong dwarfget128(DwarfBuf *)
ulong dwarfget1(DwarfBuf *)
Referenced by loadabbrevs().