pc2line.c (337B)
1 #include <stdio.h> 2 3 #include <scc/mach.h> 4 5 #include "libmach.h" 6 7 #include "elf/fun.h" 8 #include "coff32/fun.h" 9 10 static int (*ops[NFORMATS])(Obj *, unsigned long long , char *, int *) = { 11 [COFF32] = coff32pc2line, 12 }; 13 14 int 15 pc2line(Obj *obj, unsigned long long pc, char *fname, int *ln) 16 { 17 return (*ops[objfmt(obj)])(obj, pc, fname, ln); 18 }