diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-14 07:24:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-01-14 07:24:13 +0000 |
commit | 04fedd11d4f8d105e9692ab8e69613fce1d0e66e (patch) | |
tree | d8a9a302fb6f3ab5772adb3a7803ad78e93757e3 /usr.bin | |
parent | dc3d28be4f20471cb5186f90321f160da53e2114 (diff) |
Fix after recent struct reg and struct frame changes.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pmdb/arch/m88k/m88k.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/pmdb/arch/m88k/m88k.c b/usr.bin/pmdb/arch/m88k/m88k.c index 3e5c7727024..7475638f1ad 100644 --- a/usr.bin/pmdb/arch/m88k/m88k.c +++ b/usr.bin/pmdb/arch/m88k/m88k.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m88k.c,v 1.1 2003/05/30 20:50:31 miod Exp $ */ +/* $OpenBSD: m88k.c,v 1.2 2004/01/14 07:24:12 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -66,18 +66,18 @@ md_getframe(struct pstate *ps, int framenum, struct md_frame *fram) if (process_getregs(ps, &r) != 0) return (-1); - fr.F_t.tf_sp = r.tf_sp; - fr.F_t.sxip = r.sxip; + fr.F_t.tf_sp = r.r[31]; + fr.F_t.tf_sxip = r.sxip; for (count = 0; count < framenum; count++) { if (process_read(ps, fr.F_t.tf_sp, &fr, sizeof(fr)) < 0) return (-1); - if (fr.F_t.sxip < 0x1000) + if (fr.F_t.tf_sxip < 0x1000) return (-1); } - fram->pc = fr.F_t.sxip; + fram->pc = fr.F_t.tf_sxip; fram->fp = fr.F_t.tf_sp; return (0); |