Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Aktemur, Tankut Baris" <tankut.baris.aktemur@intel.com>
To: Guinevere Larsen <guinevere@redhat.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	Tom Tromey <tom@tromey.com>
Subject: RE: [PATCH v5] gdb: Introduce RAII signal handler setter
Date: Wed, 15 Apr 2026 13:10:10 +0000	[thread overview]
Message-ID: <DM4PR11MB7303F64A5A87EC77DF006E71C4222@DM4PR11MB7303.namprd11.prod.outlook.com> (raw)
In-Reply-To: <f5be6857-bf5c-4080-abb5-9c2bb386fee3@redhat.com>

Hi Guinevere,

On Friday, November 22, 2024 6:51 PM, Guinevere Larsen wrote:
> On 11/22/24 12:55 PM, Tom Tromey wrote:
> >>>>>> "Guinevere" == Guinevere Larsen <guinevere@redhat.com> writes:
> > Guinevere> +#if defined (HAVE_SIGACTION)
> > Guinevere> +  struct sigaction m_prev_handler;
> > Guinevere> +#else
> > Guinevere> +  typedef sighandler_t m_prev_handler;
> > Guinevere> +#endif
> >
> > That #else branch looks wrong, I would guess s/typedef//
> gah! thanks, copy-paste issues. will fix
> >
> > gnulib says sigaction isn't on mingw, so maybe a mingw cross-hosted
> > build would show the problem.
> I have un-defined the macro and tested.

Could it be that the local experiment above sneaked into
gdbsupport/scoped_signal_handler.h?  In that file there is

  #undef HAVE_SIGACTION

which seems to clear the macro unintentionally.

Regards,
-Baris


Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

  parent reply	other threads:[~2026-04-15 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18 19:57 Guinevere Larsen
2024-11-22 15:55 ` Tom Tromey
2024-11-22 17:50   ` Guinevere Larsen
2024-11-22 18:46     ` Tom Tromey
2024-11-22 20:38       ` Guinevere Larsen
2026-04-15 13:10     ` Aktemur, Tankut Baris [this message]
2026-04-15 13:16       ` Guinevere Larsen

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=DM4PR11MB7303F64A5A87EC77DF006E71C4222@DM4PR11MB7303.namprd11.prod.outlook.com \
    --to=tankut.baris.aktemur@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=guinevere@redhat.com \
    --cc=tom@tromey.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