From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: aristovski@qnx.com
Cc: gdb@sources.redhat.com
Subject: Re: Stepping out of signal handler problem
Date: Fri, 16 May 2008 20:42:00 -0000 [thread overview]
Message-ID: <200805162042.m4GKg0Up023579@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <482DD704.70808@qnx.com> (message from Aleksandar Ristovski on Fri, 16 May 2008 14:48:36 -0400)
> Date: Fri, 16 May 2008 14:48:36 -0400
> From: Aleksandar Ristovski <aristovski@qnx.com>
>
> Mark Kettenis wrote:
> >> From: Aleksandar Ristovski <aristovski@qnx.com>
> >> Date: Fri, 16 May 2008 12:26:43 -0400
> >>
> >> This makes question 2: Is the only way to implement this similar to
> >> linux-nat (scanning for sigreturn kernel call)? Is there anything
> >> 'cleaner'?
> >
> > The clean way of doing this is provide proper unwind info for the
> > signal trampoline. This shouldn't be too difficult if your signal
> > trampolines live in libc, and quite a bit harder if they are in the
> > kernel.
> >
>
> What is the preferred way: frame_unwind_append_sniffer or
> tramp_frame_prepend_unwinder?
Neither. I was referring to the possibility to generate DWARF2 frame
info for the signal trampoline. This is what is done in glibc, the
Linux C library. We also have a test for this in the GDB testsuite
(gdb.arch/i386-signal.c).
The nice thing about this approach is that it avoids hardcoding the
signal frame layout in GDB, making it possible to change the
implementation without having to adjust GDB.
prev parent reply other threads:[~2008-05-16 20:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 16:27 Aleksandar Ristovski
2008-05-16 17:33 ` Mark Kettenis
2008-05-16 18:48 ` Aleksandar Ristovski
2008-05-16 20:42 ` Mark Kettenis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200805162042.m4GKg0Up023579@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=aristovski@qnx.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox