diff options
-rw-r--r-- | include/mach.h | 3 | ||||
-rw-r--r-- | src/cmd/acid/builtin.c | 4 | ||||
-rw-r--r-- | src/cmd/acid/main.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/include/mach.h b/include/mach.h index 62fcf73a..79d8ac08 100644 --- 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 index e47e20a8..490c4521 100644 --- 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 index f1372f84..8f3fbb81 100644 --- 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; |