ref: ffb0199247c2c748887f0782538545c75a304f88
parent: 68411b98a01bbd645ac783c486aa58e8d2e6a124
author: cinap_lenrek <[email protected]>
date: Tue Apr 12 21:08:13 EDT 2016
ktrace: sign extend stack dump pc for amd64
--- a/sys/src/cmd/ktrace.c
+++ b/sys/src/cmd/ktrace.c
@@ -379,6 +379,11 @@
return 0;
buf[n] = '\0';
r = strtoull(buf, 0, 16);
+ switch(fhdr.magic){
+ case S_MAGIC:
+ r = (long)r; // sign extend
+ break;
+ }
}else{
r = 0;
for(i=0; i<naddr; i++)