commit 8b549a62142839c7e184939fe56850987dded578
parent 1ab0f6f00bbbb313ddc79f3905546124363079d6
Author: rsc <devnull@localhost>
Date: Fri, 7 Jan 2005 20:45:11 +0000
symopen
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/include/mach.h b/include/mach.h
@@ -293,11 +293,12 @@ void uncrackhdr(Fhdr *hdr);
int crackelf(int fd, Fhdr *hdr);
int crackmacho(int fd, Fhdr *hdr);
-int syminit(Fhdr*);
+int symopen(Fhdr*);
int symdwarf(Fhdr*);
int symelf(Fhdr*);
int symstabs(Fhdr*);
int symmacho(Fhdr*);
+void symclose(Fhdr*);
int mapfile(Fhdr *fp, ulong base, Map *map, Regs **regs);
void unmapfile(Fhdr *fp, Map *map);
diff --git a/src/cmd/acid/builtin.c b/src/cmd/acid/builtin.c
@@ -1408,8 +1408,8 @@ textfile(Node *r, Node *args)
free(correg);
mapfile(corhdr, 0, cormap, &correg);
}
- if(syminit(fp) < 0)
- fprint(2, "syminit %s: %r\n", file);
+ if(symopen(fp) < 0)
+ fprint(2, "symopen %s: %r\n", file);
else
addvarsym(fp);
return;
diff --git a/src/cmd/acid/main.c b/src/cmd/acid/main.c
@@ -258,7 +258,7 @@ attachfiles(int argc, char **argv)
}
if(symhdr)
- syminit(symhdr);
+ symopen(symhdr);
if(!mach)
mach = machcpu;