diff options
author | Russ Cox <rsc@swtch.com> | 2012-02-19 18:11:39 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-02-19 18:11:39 -0500 |
commit | 443d6288386f5521efa7d49bc8ea5be04f5fd696 (patch) | |
tree | 443a41a36f0bb96502fe218c4423a9e5571d7e17 /src/libmach/sym.c | |
parent | 60d96f2e4385f0b4cee12add6dea545880a0e6a1 (diff) | |
download | plan9port-443d6288386f5521efa7d49bc8ea5be04f5fd696.tar.gz plan9port-443d6288386f5521efa7d49bc8ea5be04f5fd696.tar.bz2 plan9port-443d6288386f5521efa7d49bc8ea5be04f5fd696.zip |
libmach, acid, db: 64-bit support
Diffstat (limited to 'src/libmach/sym.c')
-rw-r--r-- | src/libmach/sym.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libmach/sym.c b/src/libmach/sym.c index a5b057de..6369cdd1 100644 --- a/src/libmach/sym.c +++ b/src/libmach/sym.c @@ -69,7 +69,7 @@ findhdr(char *name) } int -pc2file(ulong pc, char *file, uint nfile, ulong *line) +pc2file(u64int pc, char *file, uint nfile, ulong *line) { Fhdr *p; @@ -81,14 +81,14 @@ pc2file(ulong pc, char *file, uint nfile, ulong *line) } int -pc2line(ulong pc, ulong *line) +pc2line(u64int pc, ulong *line) { char tmp[10]; /* just in case */ return pc2file(pc, tmp, sizeof tmp, line); } int -file2pc(char *file, ulong line, ulong *addr) +file2pc(char *file, ulong line, u64int *addr) { Fhdr *p; @@ -102,7 +102,7 @@ file2pc(char *file, ulong line, ulong *addr) } int -line2pc(ulong basepc, ulong line, ulong *pc) +line2pc(u64int basepc, ulong line, u64int *pc) { Fhdr *p; @@ -116,7 +116,7 @@ line2pc(ulong basepc, ulong line, ulong *pc) } int -fnbound(ulong pc, ulong *bounds) +fnbound(u64int pc, u64int *bounds) { Fhdr *p; Loc l; @@ -143,7 +143,7 @@ fnbound(ulong pc, ulong *bounds) } int -fileline(ulong pc, char *a, uint n) +fileline(u64int pc, char *a, uint n) { ulong line; @@ -408,7 +408,7 @@ findlsym(Symbol *s1, Loc loc, Symbol *s2) } int -unwindframe(Map *map, Regs *regs, ulong *next, Symbol *sym) +unwindframe(Map *map, Regs *regs, u64int *next, Symbol *sym) { Fhdr *p; @@ -421,7 +421,7 @@ unwindframe(Map *map, Regs *regs, ulong *next, Symbol *sym) } int -symoff(char *a, uint n, ulong addr, uint class) +symoff(char *a, uint n, u64int addr, uint class) { Loc l; Symbol s; |