symopen
This commit is contained in:
parent
1ab0f6f00b
commit
8b549a6214
3 changed files with 5 additions and 4 deletions
|
|
@ -293,11 +293,12 @@ void uncrackhdr(Fhdr *hdr);
|
||||||
int crackelf(int fd, Fhdr *hdr);
|
int crackelf(int fd, Fhdr *hdr);
|
||||||
int crackmacho(int fd, Fhdr *hdr);
|
int crackmacho(int fd, Fhdr *hdr);
|
||||||
|
|
||||||
int syminit(Fhdr*);
|
int symopen(Fhdr*);
|
||||||
int symdwarf(Fhdr*);
|
int symdwarf(Fhdr*);
|
||||||
int symelf(Fhdr*);
|
int symelf(Fhdr*);
|
||||||
int symstabs(Fhdr*);
|
int symstabs(Fhdr*);
|
||||||
int symmacho(Fhdr*);
|
int symmacho(Fhdr*);
|
||||||
|
void symclose(Fhdr*);
|
||||||
|
|
||||||
int mapfile(Fhdr *fp, ulong base, Map *map, Regs **regs);
|
int mapfile(Fhdr *fp, ulong base, Map *map, Regs **regs);
|
||||||
void unmapfile(Fhdr *fp, Map *map);
|
void unmapfile(Fhdr *fp, Map *map);
|
||||||
|
|
|
||||||
|
|
@ -1408,8 +1408,8 @@ textfile(Node *r, Node *args)
|
||||||
free(correg);
|
free(correg);
|
||||||
mapfile(corhdr, 0, cormap, &correg);
|
mapfile(corhdr, 0, cormap, &correg);
|
||||||
}
|
}
|
||||||
if(syminit(fp) < 0)
|
if(symopen(fp) < 0)
|
||||||
fprint(2, "syminit %s: %r\n", file);
|
fprint(2, "symopen %s: %r\n", file);
|
||||||
else
|
else
|
||||||
addvarsym(fp);
|
addvarsym(fp);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ attachfiles(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(symhdr)
|
if(symhdr)
|
||||||
syminit(symhdr);
|
symopen(symhdr);
|
||||||
|
|
||||||
if(!mach)
|
if(!mach)
|
||||||
mach = machcpu;
|
mach = machcpu;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue