qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] gdbstub: Add Xfer:siginfo:read stub


From: Gustavo Romero
Subject: Re: [PATCH 1/2] gdbstub: Add Xfer:siginfo:read stub
Date: Thu, 7 Mar 2024 14:51:00 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 3/4/24 2:18 PM, Richard Henderson wrote:
On 3/3/24 09:26, Gustavo Romero wrote:
+    /* Filter out si_type from si_code. See comment in siginfo_noswap(). */ > +   
 tmp_siginfo = ts->sync_signal.info;
+    tmp_siginfo.si_code = sextract32(tmp_siginfo.si_code, 0, 16);


This is incorrect, as it only handles synchronous signals.

In handle_pending_signal(), struct emulated_sigtable is passed, which has the 
correct siginfo (all of it, so no need for the adjustment).  I think you need 
to pass that in to gdb_handlesig so that a copy can be made for later xfer.

Thanks, I'm sending v2 that fixes it.


Cheers,
Gustavo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]