Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@polymtl.ca>
Subject: [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc
Date: Thu, 25 Jul 2024 13:41:36 -0400	[thread overview]
Message-ID: <20240725174514.129360-3-simon.marchi@efficios.com> (raw)
In-Reply-To: <20240725174514.129360-1-simon.marchi@efficios.com>

From: Simon Marchi <simon.marchi@polymtl.ca>

REALTIME_LO was only possibly previously defined in config/nm-nto.h,
which is now removed.  So we can remove the #ifndef protecting against a
redefinition of REALTIME_LO in gdbsupport/signals.cc.

Change-Id: I021b9518ceaa6223bd480ff1e07e9a978b0b241e
---
 gdbsupport/signals.cc | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc
index 4989b3fc28bd..2cf641bd9e2f 100644
--- a/gdbsupport/signals.cc
+++ b/gdbsupport/signals.cc
@@ -30,14 +30,12 @@ struct gdbarch;
    _available_ realtime signal, not the lowest supported; glibc takes
    several for its own use.  */
 
-#ifndef REALTIME_LO
-# if defined(__SIGRTMIN)
-#  define REALTIME_LO __SIGRTMIN
-#  define REALTIME_HI (__SIGRTMAX + 1)
-# elif defined(SIGRTMIN)
-#  define REALTIME_LO SIGRTMIN
-#  define REALTIME_HI (SIGRTMAX + 1)
-# endif
+#if defined(__SIGRTMIN)
+# define REALTIME_LO __SIGRTMIN
+# define REALTIME_HI (__SIGRTMAX + 1)
+#elif defined(SIGRTMIN)
+# define REALTIME_LO SIGRTMIN
+# define REALTIME_HI (SIGRTMAX + 1)
 #endif
 
 /* This table must match in order and size the signals in enum
-- 
2.45.2


  parent reply	other threads:[~2024-07-25 17:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 17:41 [PATCH 0/3] Remove Neutrino support Simon Marchi
2024-07-25 17:41 ` [PATCH 1/3] gdb: remove QNX " Simon Marchi
2024-07-25 17:41 ` Simon Marchi [this message]
2024-07-25 17:41 ` [PATCH 3/3] gdb: remove find_and_open_solib so_list method Simon Marchi
2024-08-11 17:39 ` [PATCH 0/3] Remove Neutrino support Kevin Buettner
2024-08-12 15:29   ` Simon Marchi
  -- strict thread matches above, loose matches on Subject: below --
2020-12-07 22:33 [PATCH 1/3] gdb: remove native support for QNX Neutrino Simon Marchi via Gdb-patches
2020-12-07 22:33 ` [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc Simon Marchi via Gdb-patches

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=20240725174514.129360-3-simon.marchi@efficios.com \
    --to=simon.marchi@efficios.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    /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