aboutsummaryrefslogtreecommitdiff
path: root/src/libmach/elfcorefreebsdamd64.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-03-05 16:36:31 -0500
committerRuss Cox <rsc@swtch.com>2012-03-05 16:36:31 -0500
commit4a000a28d30ea9a7df06088bcd4bed0ab431f0ad (patch)
treeeb01eecada873fb4b301902ef59516054af8f23a /src/libmach/elfcorefreebsdamd64.c
parenta31903778164deec9e58a525e2203bb416cafe0e (diff)
parenta31903778164deec9e58a525e2203bb416cafe0e (diff)
downloadplan9port-4a000a28d30ea9a7df06088bcd4bed0ab431f0ad.tar.gz
plan9port-4a000a28d30ea9a7df06088bcd4bed0ab431f0ad.tar.bz2
plan9port-4a000a28d30ea9a7df06088bcd4bed0ab431f0ad.zip
merge
Diffstat (limited to 'src/libmach/elfcorefreebsdamd64.c')
-rw-r--r--src/libmach/elfcorefreebsdamd64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmach/elfcorefreebsdamd64.c b/src/libmach/elfcorefreebsdamd64.c
index aefed432..dd7f6f94 100644
--- a/src/libmach/elfcorefreebsdamd64.c
+++ b/src/libmach/elfcorefreebsdamd64.c
@@ -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;