public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Rework Cygwin signal handling
@ 2024-02-20 16:56 Pedro Alves
  2024-02-20 16:56 ` [PATCH 1/2] Teach gdb how to unwind cygwin _sigbe and sigdelayed frames Pedro Alves
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Pedro Alves @ 2024-02-20 16:56 UTC (permalink / raw)
  To: gdb-patches

This upstreams a couple GDB patches that Cygwin has been carrying
downstream.

In my Windows non-stop work, I was having trouble with the
have_saved_context machinery, I couldn't get it to work properly.  The
Cygwin distro gdb was able to unwind signals properly, but my GDB did
not.  After some head banging, I realized that Cygwin gdb may have
some downstream patches.  And indeed it does.  One of those patches
eliminates the have_saved_context machinery...  I got signal handling
and non-stop working properly on top of that patch, which then means
that I need that change upstream as well, if I am to upstream my
non-stop changes...  So here we are.  That patch is patch #2 in this
series.

That have_saved_context patch depends on another downstream patch,
which is patch #1 here.  The version I show here is a polished,
modernized version compared to the downstream version, but the main
logic is the same.  While this is not perfect, it is certainly better
than what we have upstream, which just isn't able to unwind from a
signal handler at all.  Cygwin has been carrying these patches for
many years, so while we could think about improving all this, I see no
reason for holding back the patch as is.  We can always improve on
top, and we should be able to do that upstream.

Jon Turney (2):
  Teach gdb how to unwind cygwin _sigbe and sigdelayed frames
  Drop special way of getting inferior context after a Cygwin signal

 gdb/amd64-windows-tdep.c |  26 ++++++
 gdb/i386-windows-tdep.c  |  20 ++++
 gdb/windows-nat.c        |  52 +++--------
 gdb/windows-tdep.c       | 194 +++++++++++++++++++++++++++++++++++++++
 gdb/windows-tdep.h       |  20 ++++
 5 files changed, 275 insertions(+), 37 deletions(-)


base-commit: 94a75b0363b1e09416e9bd24cac72d98864688d8
-- 
2.43.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-23 16:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-20 16:56 [PATCH 0/2] Rework Cygwin signal handling Pedro Alves
2024-02-20 16:56 ` [PATCH 1/2] Teach gdb how to unwind cygwin _sigbe and sigdelayed frames Pedro Alves
2024-02-20 16:56 ` [PATCH 2/2] Drop special way of getting inferior context after a Cygwin signal Pedro Alves
2024-02-21 13:25 ` [PATCH 0/2] Rework Cygwin signal handling Jon Turney
2024-02-23 16:24   ` Pedro Alves
2024-02-21 21:14 ` Tom Tromey
2024-02-23 16:25   ` Pedro Alves

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).