From owner-p4-projects@FreeBSD.ORG Sat Jun 12 07:43:41 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BECFA16A4D1; Sat, 12 Jun 2004 07:43:40 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90EB716A4CE for ; Sat, 12 Jun 2004 07:43:40 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A24243D1F for ; Sat, 12 Jun 2004 07:43:40 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5C7gwNO000937 for ; Sat, 12 Jun 2004 07:42:58 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5C7gweu000925 for perforce@freebsd.org; Sat, 12 Jun 2004 07:42:58 GMT (envelope-from marcel@freebsd.org) Date: Sat, 12 Jun 2004 07:42:58 GMT Message-Id: <200406120742.i5C7gweu000925@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 54709 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 07:43:41 -0000 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');