This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Add libkvm interface support for NetBSD/i386 and OpenBSD/i386
Date: Sun, 27 Jun 2004 09:34:14 -0700
From: Marcel Moolenaar <marcel@xcllnt.net>
On Sun, Jun 27, 2004 at 06:23:04PM +0200, Mark Kettenis wrote:
> +
> + we reconstruct the register state as it would look when we just
> + returned from cpu_switch(). */
> +
Question: since this will do backtraces in the kernel, are there
plans to improve the frame sniffers (or frame sniffer framework)
to allow this code to add a sniffer for trapframes so that it's
possible to trace across them (if applicable) and also to improve
the termination of traces in the context of non-standard frames?
Defenitely. It should be pretty easy to add unwinders for trap and
interrupt frames.
Termination of traces is a bit of an issue. If there is a fool-proof
way to detect the end of a frame-chain, then we should defenitely use
it. When debugging the kernel you'd probably want to terminate on
frames that cross the protection boundary between user-space and
kernel-space.
Mark