From: Simon Marchi <simon.marchi@polymtl.ca>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Remove a VEC from record-full.c
Date: Sat, 09 Jun 2018 12:11:00 -0000 [thread overview]
Message-ID: <b29dd3508ec267b6cffdf8e296e394f2@polymtl.ca> (raw)
In-Reply-To: <20180608025636.14640-1-tom@tromey.com>
On 2018-06-07 22:56, Tom Tromey wrote:
> @@ -1830,10 +1820,7 @@ record_full_target::remove_breakpoint (struct
> gdbarch *gdbarch,
> }
>
> if (reason == REMOVE_BREAKPOINT)
> - {
> - VEC_unordered_remove (record_full_breakpoint_p,
> - record_full_breakpoints, ix);
> - }
> + record_full_breakpoints.erase (iter);
> return 0;
You can use one of the overloads of unordered_remove in
common/gdb_vecs.h to try to preserve the exact same behavior as with the
VEC.
Simon
next prev parent reply other threads:[~2018-06-09 12:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 2:56 Tom Tromey
2018-06-09 12:11 ` Simon Marchi [this message]
2018-06-10 15:57 ` Tom Tromey
2018-06-10 21:16 ` Simon Marchi
2018-06-10 22:35 ` Tom Tromey
2018-06-11 0:16 ` Tom Tromey
2018-06-11 0:28 ` Simon Marchi
2018-06-11 4:11 ` 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=b29dd3508ec267b6cffdf8e296e394f2@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--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