From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc
Date: Mon, 7 Dec 2020 17:33:41 -0500 [thread overview]
Message-ID: <20201207223342.1451954-2-simon.marchi@polymtl.ca> (raw)
In-Reply-To: <20201207223342.1451954-1-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.
gdbsupport/ChangeLog:
* signals.cc: Remove `#ifndef REALTIME_LO`.
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 b9fe9005c6aa..93862bfeae88 100644
--- a/gdbsupport/signals.cc
+++ b/gdbsupport/signals.cc
@@ -31,14 +31,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.29.2
next prev parent reply other threads:[~2020-12-07 22:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Simon Marchi via Gdb-patches [this message]
2020-12-07 22:33 ` [PATCH 3/3] gdb: remove QNX Neutrino tdep support Simon Marchi via Gdb-patches
2020-12-08 15:04 ` Christian Biesinger via Gdb-patches
2020-12-08 15:30 ` Simon Marchi via Gdb-patches
2020-12-08 15:04 ` Eli Zaretskii via Gdb-patches
2020-12-08 15:06 ` [PATCH 1/3] gdb: remove native support for QNX Neutrino Eli Zaretskii via Gdb-patches
2020-12-08 15:10 ` Simon Marchi via Gdb-patches
2020-12-09 20:54 ` Tom Tromey
2020-12-09 21:06 ` Simon Marchi via Gdb-patches
2020-12-09 21:07 ` Simon Marchi via Gdb-patches
2024-07-25 17:41 [PATCH 0/3] Remove Neutrino support Simon Marchi
2024-07-25 17:41 ` [PATCH 2/3] gdbsupport: remove #ifndef REALTIME_LO in signals.cc Simon Marchi
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=20201207223342.1451954-2-simon.marchi@polymtl.ca \
--to=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