This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Unwinder for OpenBSD/sparc64 kernel trap frames
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 30 Dec 2006 21:22:59 -0500
- Subject: Re: [commit] Unwinder for OpenBSD/sparc64 kernel trap frames
- References: <200612310128.kBV1SDvF008133@brahms.sibelius.xs4all.nl>
On Sun, Dec 31, 2006 at 02:28:13AM +0100, Mark Kettenis wrote:
> + find_pc_partial_function (frame_pc_unwind (next_frame), &name, NULL, NULL);
> + if (name && strcmp (name, "Lslowtrap_reenter") == 0)
> + return &sparc64obsd_trapframe_unwind;
Does this really belong in GDB? I ask because we've resisted adding
similar things for other targets before - at least I have for Linux
and for Xfree86, but maybe I should have been more accepting.
Anyway, I have some thoughts on how to extend the unwind mechanism so
that the OpenBSD kernel could ship a script that knew how to unwind its
trap frames. I'll be posting about that at the beginning of 2007, just
as soon as I clear my review backlog and the pointers-to-members patch,
I hope!
--
Daniel Jacobowitz
CodeSourcery