Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2004 07:42:58 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54709 for review
Message-ID:  <200406120742.i5C7gweu000925@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54709

Change 54709 by marcel@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');



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406120742.i5C7gweu000925>