Date: Fri, 16 Nov 2007 22:17:37 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/gnu/usr.bin/gdb/kgdb kgdb.h kthr.c trgt_i386.c Message-ID: <200711162217.lAGMHbNd077328@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711162217.lAGMHbNd077328>