From: "יעקב שמחוני" <ysimhony@gmail.com>
To: gdb-patches@sourceware.org
Subject: src/gdb/breakpoint.c:3092: redundant test ?
Date: Thu, 30 Aug 2018 18:34:00 -0000 [thread overview]
Message-ID: <CAHhXt=S4sKZQTtvi3MWNZMfAN6iRgkWHEF=r0emLWN8xjQUb_w@mail.gmail.com> (raw)
2018-08-30 Yacov Simhony <ysimhony@gmail.com>
* breakpoint.c (update_inserted_breakpoint_locations): remove reduandant
condition
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 4e7dac5..3a9b712 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2898,7 +2898,7 @@ update_inserted_breakpoint_locations (void)
/* We only want to update locations that are already inserted
and need updating. This is to avoid unwanted insertion during
deletion of breakpoints. */
- if (!bl->inserted || (bl->inserted && !bl->needs_update))
+ if (!bl->inserted || !bl->needs_update)
continue;
switch_to_program_space_and_thread (bl->pspace);
next reply other threads:[~2018-08-30 18:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-30 18:34 יעקב שמחוני [this message]
2018-09-04 23:26 ` Kevin Buettner
2018-09-18 14:02 ` Tom Tromey
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='CAHhXt=S4sKZQTtvi3MWNZMfAN6iRgkWHEF=r0emLWN8xjQUb_w@mail.gmail.com' \
--to=ysimhony@gmail.com \
--cc=gdb-patches@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).