snap: change ulong return of stackptr() to uvlong for amd64
This commit is contained in:
parent
752841fcc1
commit
c1dc5d15c3
1 changed files with 2 additions and 3 deletions
|
@ -144,7 +144,7 @@ Die:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* discover the stack pointer of the given process */
|
/* discover the stack pointer of the given process */
|
||||||
ulong
|
uvlong
|
||||||
stackptr(Proc *proc, int fd)
|
stackptr(Proc *proc, int fd)
|
||||||
{
|
{
|
||||||
char *q;
|
char *q;
|
||||||
|
@ -202,8 +202,7 @@ snap(long pid, int usetext)
|
||||||
Seg **s;
|
Seg **s;
|
||||||
char *name, *segdat, *q, *f[128+1], buf[128];
|
char *name, *segdat, *q, *f[128+1], buf[128];
|
||||||
int fd, i, stacki, nf, np;
|
int fd, i, stacki, nf, np;
|
||||||
uvlong off, len, stackoff, stacklen;
|
uvlong off, len, stackoff, stacklen, sp;
|
||||||
uvlong sp;
|
|
||||||
|
|
||||||
proc = emalloc(sizeof(*proc));
|
proc = emalloc(sizeof(*proc));
|
||||||
proc->pid = pid;
|
proc->pid = pid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue