From owner-p4-projects@FreeBSD.ORG Sun Jun 13 05:07:29 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3853216A4D1; Sun, 13 Jun 2004 05:07:29 +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 12B7116A4CE for ; Sun, 13 Jun 2004 05:07:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CF8543D41 for ; Sun, 13 Jun 2004 05:07:29 +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 i5D55c13023578 for ; Sun, 13 Jun 2004 05:05:38 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5D55bH3023575 for perforce@freebsd.org; Sun, 13 Jun 2004 05:05:37 GMT (envelope-from marcel@freebsd.org) Date: Sun, 13 Jun 2004 05:05:37 GMT Message-Id: <200406130505.i5D55bH3023575@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 54786 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: Sun, 13 Jun 2004 05:07:29 -0000 http://perforce.freebsd.org/chv.cgi?CH=54786 Change 54786 by marcel@marcel_nfs on 2004/06/13 05:05:10 Ok, time to mess it all up again. I've been having a lot of problems getting backtraces to work from trapframes so a new approach is needed. With this commit td_last_frame is officially slamdunked to the realm of the goners. We're going to use the PCB as the context for debugging and only frob the trapframe for singlestepping. A quick and dirty prototype has shown that the PCB has a lot of advantages, including handling of dumppcb and the generation of backtraces outside the debugger. A simple call to savectx() creates a PCB from which a backtrace can be generated. This branch is broken until further notice. Affected files ... .. //depot/projects/gdb/sys/sys/proc.h#15 edit Differences ... ==== //depot/projects/gdb/sys/sys/proc.h#15 (text+ko) ==== @@ -141,7 +141,6 @@ * p - select lock (sellock) * q - td_contested lock * r - p_peers lock - * t - updated at kernel (re)entry. Read-only in all other cases. * x - created at fork, only changes during single threading in exec * z - zombie threads/kse/ksegroup lock * @@ -272,7 +271,6 @@ int td_flags; /* (j) TDF_* flags. */ int td_inhibitors; /* (j) Why can not run. */ int td_pflags; /* (k) Private thread (TDP_*) flags. */ - struct trapframe *td_last_frame; /* (t) Trapframe of last entry. */ struct kse *td_last_kse; /* (j) Previous value of td_kse. */ struct kse *td_kse; /* (j) Current KSE if running. */ int td_dupfd; /* (k) Ret value from fdopen. XXX */