This commit is contained in:
Russ Cox 2012-03-05 16:36:31 -05:00
commit 4a000a28d3
12 changed files with 134 additions and 18 deletions

View file

@ -113,7 +113,8 @@ elfcorefreebsdamd64(Fhdr *fp, Elf *elf, ElfNote *note)
u->flags = l->rflags;
u->sp = l->rsp;
u->ss = l->ss;
print("core PC=%#llux SP=%#llux\n", u->ip, u->sp);
if((fp->thread = realloc(fp->thread, (1+fp->nthread)*sizeof(fp->thread[0]))) == nil){
fprint(2, "warning: out of memory saving thread info\n");
return;