From owner-cvs-src@FreeBSD.ORG Fri Nov 16 22:17:38 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0372216A417; Fri, 16 Nov 2007 22:17:38 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E597B13C48A; Fri, 16 Nov 2007 22:17:37 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lAGMHbWU077329; Fri, 16 Nov 2007 22:17:37 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lAGMHbNd077328; Fri, 16 Nov 2007 22:17:37 GMT (envelope-from jhb) Message-Id: <200711162217.lAGMHbNd077328@repoman.freebsd.org> From: John Baldwin Date: Fri, 16 Nov 2007 22:17:37 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/gnu/usr.bin/gdb/kgdb kgdb.h kthr.c trgt_i386.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2007 22:17:38 -0000 jhb 2007-11-16 22:17:37 UTC FreeBSD src repository Modified files: gnu/usr.bin/gdb/kgdb kgdb.h kthr.c trgt_i386.c Log: Teach kgdb how to handle double fault frames on i386: - Save td_oncpu in 'struct kthr' so the i386 target code can see which CPU a thread is running on. - Add a new frame unwinder for double fault frames. This unwinder is used when "dblfault_handler" is encountered in the stack. It uses the CPU of the current thread to lookup the base address of the TSS used for the double fault from the GDT. It then fetches the various registers out of the TSS similar to how the current trapframe unwinder fetches registers out of the trapframe. MFC after: 3 days Revision Changes Path 1.6 +1 -0 src/gnu/usr.bin/gdb/kgdb/kgdb.h 1.8 +1 -0 src/gnu/usr.bin/gdb/kgdb/kthr.c 1.7 +152 -1 src/gnu/usr.bin/gdb/kgdb/trgt_i386.c