summaryrefslogtreecommitdiff
path: root/sys/src/cmd/snap
AgeCommit message (Collapse)Author
2018-11-22snap: use Mach->szaddr as the width of the stack pointer (fixes snap on amd64)cinap_lenrek
to read the value of the stack pointer register, snap used Machdata->szreg to determine the width of the SP register in the Ureg structure. however, the value does not match the Ureg.sp type for a number of architectures (mips2, amd64) and it is unclear if this was an oversight as it is rarely used (snap is indeed the only user) or if it was intended for a different purpose. so we use szaddr instead which matches the stack pointer width in the Ureg and fixes the truncated stack issue on amd64.
2018-11-22snap: add debug flag, make debug less verbosecinap_lenrek
2018-11-22snap: check for overflows, cleanup error handlingcinap_lenrek
2018-11-22snap: consequently use ulong for page index and countcinap_lenrek
2018-11-22snap: be more conservative taking stack snapshotcinap_lenrek
include up to 8k below the stack to get some more context. don't assume stack is at least 16K.
2015-03-07snap: fix readseg() to cope with > 2gb segmentscinap_lenrek
2014-09-29snap: change ulong return of stackptr() to uvlong for amd64cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen