public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Rémi Bernon" <rbernon@codeweavers.com>
To: Guinevere Larsen <blarsen@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/python: Allow SIGTRAMP_FRAME python unwinders to be created.
Date: Tue, 19 Mar 2024 16:58:59 +0100	[thread overview]
Message-ID: <d6136ac4-9413-4069-91a7-9420bfa81669@codeweavers.com> (raw)
In-Reply-To: <3d80a22b-3ccf-4da7-9c40-59a3c74ccaa8@redhat.com>

On 3/14/24 14:00, Guinevere Larsen wrote:
> On 14/02/2024 22:58, Rémi Bernon wrote:
>> Wine now executes Win32 code on a separate stack for its Unix code. It
>> switches from one stack to another on through specific functions, and
>> without any custom unwinders, debugging Wine in Gdb will only let you
>> see the frames of either the Win32 side, or the Unix side.
>>
>> The Win32 and Unix call stacks are actually interleaved, with Unix code
>> sometimes calling back into Win32. Using a custom Python frame unwinder
>> we can provide Gdb with the information it needs to join both toghether
>> and show a complete interleaved call stack. However, Gdb will often stop
>> unwinding as it will see the frames from one stack as inner the frames
>> from the other stack.
>>
>> This allows to write custom unwinders to produce SIGTRAMP_FRAME typed
>> frames, which bypasses this restriction and will show the Win32 / Unix
>> gate as a signal frame.
> 
> Hi!
> 
> Sorry for taking a long time for to review.
> 
> This looks like a good improvement. It would be nice if you could 
> provide a test, but I'm not sure if you are able to manufacture a 
> trampoline frame for a test. If it isn't possible to make a test patch 
> LGTM: Reviewed-By: Guinevere Larsen <blarsen@redhat.com>
> 
> I hope a responsible maintainer is able to approve this soon (or explain 
> how to make a faux trampoline frame to test).
> 

Thanks for the feedback! I have no idea how to add a test, but I'll try 
to figure something up.

-- 
Rémi Bernon <rbernon@codeweavers.com>


  reply	other threads:[~2024-03-19 15:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 21:58 Rémi Bernon
2024-02-21 16:41 ` [PING][PATCH] " Rémi Bernon
2024-02-29  8:17 ` Rémi Bernon
2024-03-14 13:00 ` [PATCH] " Guinevere Larsen
2024-03-19 15:58   ` Rémi Bernon [this message]
2024-03-20 14:13 ` Andrew Burgess

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=d6136ac4-9413-4069-91a7-9420bfa81669@codeweavers.com \
    --to=rbernon@codeweavers.com \
    --cc=blarsen@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).