PERFORCE change 54709 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sat Jun 12 07:43:41 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54709
Change 54709 by marcel at marcel_nfs on 2004/06/12 07:41:57
Oops, forgotte in previous commit: don't dereference the
trapframe in gdb_cpu_query(). use getreg().
Affected files ...
.. //depot/projects/gdb/usr.bin/kgdb/md_ia64.c#4 edit
Differences ...
==== //depot/projects/gdb/usr.bin/kgdb/md_ia64.c#4 (text+ko) ====
@@ -169,7 +169,7 @@
}
/* slot is unsigned. No need to test for negative values. */
- if (slot >= (curkthr->td_frame->tf_special.ndirty >> 3)) {
+ if (slot >= (getreg(&curkthr->td_frame->tf_special.ndirty) >> 3)) {
gdb_tx_err(EINVAL);
return (-1);
}
@@ -179,7 +179,7 @@
* the address of the user backing store. Calculate the right
* kernel stack address. See also ptrace_machdep().
*/
- bspstore = curkthr->td_frame->tf_special.bspstore;
+ bspstore = getreg(&curkthr->td_frame->tf_special.bspstore);
kstack = (bspstore >= IA64_RR_BASE(5)) ? (uint64_t*)bspstore :
(uint64_t*)(curkthr->td_kstack + (bspstore & 0x1ffUL));
gdb_tx_begin('\0');
More information about the p4-projects
mailing list