Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 lwpaddr is a boolean variable and thus does...
details: https://anonhg.NetBSD.org/src/rev/9cc2632bca41
branches: trunk
changeset: 764419:9cc2632bca41
user: enami <enami%NetBSD.org@localhost>
date: Thu Apr 21 00:24:07 2011 +0000
description:
lwpaddr is a boolean variable and thus doesn't hold an address of lwp.
Compare with correct value so that tr/t works again on current procecss.
diffstat:
sys/arch/x86/x86/db_trace.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 97937457d296 -r 9cc2632bca41 sys/arch/x86/x86/db_trace.c
--- a/sys/arch/x86/x86/db_trace.c Wed Apr 20 23:37:51 2011 +0000
+++ b/sys/arch/x86/x86/db_trace.c Thu Apr 21 00:24:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.2 2011/04/11 04:22:31 mrg Exp $ */
+/* $NetBSD: db_trace.c,v 1.3 2011/04/21 00:24:07 enami Exp $ */
/*
* Mach Operating System
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.2 2011/04/11 04:22:31 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.3 2011/04/21 00:24:07 enami Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -158,13 +158,13 @@
return;
}
db_read_bytes((db_addr_t)pp, sizeof(p), (char *)&p);
- db_read_bytes((db_addr_t)p.p_lwps.lh_first,
- sizeof(l), (char *)&l);
+ addr = (db_addr_t)p.p_lwps.lh_first;
+ db_read_bytes(addr, sizeof(l), (char *)&l);
}
(*pr)("lid %d ", l.l_lid);
pcb = lwp_getpcb(&l);
#ifdef _KERNEL
- if (l.l_proc == curproc && (lwp_t *)lwpaddr == curlwp)
+ if (l.l_proc == curproc && (lwp_t *)addr == curlwp)
set_frame_callpc();
else
#endif
Home |
Main Index |
Thread Index |
Old Index