#include "dwarf.h"
#include "pe.h"
Go to the source code of this file.
◆ main()
Definition at line 21 of file dwarfdump.c.
22{
29
32
33#if 0
34 fmtinstall('R', exprfmt);
35 fmtinstall('H', encodefmt);
36#endif
37
39 sysfatal(
"elfopen %s: %r",
argv[1]);
41 sysfatal("dwarfopen: %r");
42
44 sysfatal("dwarfenumall: %r");
45
49 print(
"compileunit %s\n",
s.attrs.name);
50 break;
53 goto sym;
56 goto sym;
59 goto sym;
62 break;
64 sym:
65 if(
s.attrs.isexternal)
67 print(
"%c %s",
c,
s.attrs.name);
68 if(
s.attrs.have.lowpc)
69 print(
" 0x%lux-0x%lux",
s.attrs.lowpc,
s.attrs.highpc);
70 switch(
s.attrs.have.location){
72 print(
" @ %.*H",
s.attrs.location.b.len,
s.attrs.location.b.data);
73 break;
75 print(
" @ 0x%lux",
s.attrs.location.c);
76 break;
77 }
78 if(
s.attrs.have.ranges)
79 print(
" ranges@0x%lux",
s.attrs.ranges);
81 if(
s.attrs.have.lowpc){
83 print(
"\tcould not find source: %r\n");
85 print(
"\t%s/%s:%lud mtime=%lud length=%lud\n",
87 else
88 print(
"\t%s/%s/%s:%lud mtime=%lud length=%lud\n",
90
93 }
94 break;
95 }
96 }
97 exits(0);
98}
static void print(LPPRINTDLGW pd, LPWSTR wszFileName)
GLuint GLsizei GLsizei * length
void printrules(Dwarf *d, ulong pc)
Pe * peopen(const char *name)
int dwarfpctoline(Dwarf *, ulong, char **, char **, char **, char **, ulong *, ulong *, ulong *)
Dwarf * dwarfopen(struct _Pe *elf)
int dwarfnextsym(Dwarf *, DwarfSym *)
int dwarfenum(Dwarf *, DwarfSym *)
◆ printrules()
Definition at line 101 of file dwarfdump.c.
102{
106
108 print(
"\tcannot unwind from pc 0x%lux: %r\n", pc);
109
110 print(
"\tpc=0x%lux cfa=%R ra=%R", pc, &cfa, &ra);
115}
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
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
int dwarfunwind(Dwarf *, ulong, DwarfExpr *, DwarfExpr *, DwarfExpr *, int)
Referenced by main().
◆ usage()
Definition at line 14 of file dwarfdump.c.
15{
16 fprint(2, "usage: dwarfdump file\n");
17 exits("usage");
18}
Referenced by main().