merge
This commit is contained in:
commit
4a000a28d3
12 changed files with 134 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ int
|
|||
rget(Regs *regs, char *name, u64int *u)
|
||||
{
|
||||
if(regs == nil){
|
||||
*u = ~(ulong)0;
|
||||
*u = ~(u64int)0;
|
||||
werrstr("registers not mapped");
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -54,6 +54,9 @@ _uregrw(Regs *regs, char *name, u64int *u, int isr)
|
|||
case 'X':
|
||||
*u = mach->swap4(*(u32int*)ureg);
|
||||
return 0;
|
||||
case 'Y':
|
||||
*u = mach->swap8(*(u64int*)ureg);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue