From: Simon Marchi <simon.marchi@ericsson.com>
To: Tom Tromey <tom@tromey.com>, <gdb-patches@sourceware.org>
Subject: Re: [RFA] Change program_space::added_solibs to a std::vector
Date: Tue, 29 May 2018 16:14:00 -0000 [thread overview]
Message-ID: <1218f244-a8b9-c184-2dc3-9ee22bb87451@ericsson.com> (raw)
In-Reply-To: <20180529151104.6387-1-tom@tromey.com>
On 2018-05-29 11:11 AM, Tom Tromey wrote:
> This changes program_space::added_solibs to a std::vector, removing a
> VEC.
>
> Tested by the buildbot.
>
> ChangeLog
> 2018-05-29 Tom Tromey <tom@tromey.com>
>
> * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
> (struct program_space) <added_solibs>: Now a std::vector.
> * breakpoint.c (print_solib_event): Update.
> (check_status_catch_solib): Update.
> * progspace.c (clear_program_space_solib_cache): Update.
> * solib.c (update_solib_list): Update.
> ---
> gdb/ChangeLog | 9 +++++++++
> gdb/breakpoint.c | 22 ++++++----------------
> gdb/progspace.c | 3 +--
> gdb/progspace.h | 5 +----
> gdb/solib.c | 2 +-
> 5 files changed, 18 insertions(+), 23 deletions(-)
>
> diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
> index 721afd2c049..291442a6b55 100644
> --- a/gdb/breakpoint.c
> +++ b/gdb/breakpoint.c
> @@ -4580,8 +4580,7 @@ static void
> print_solib_event (int is_catchpoint)
> {
> bool any_deleted = !current_program_space->deleted_solibs.empty ();
> - int any_added
> - = !VEC_empty (so_list_ptr, current_program_space->added_solibs);
> + int any_added = !current_program_space->added_solibs.empty ();
bool?
Otherwise LGTM.
Thanks,
Simon
next prev parent reply other threads:[~2018-05-29 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-29 15:16 Tom Tromey
2018-05-29 16:14 ` Simon Marchi [this message]
2018-05-29 19:50 ` 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=1218f244-a8b9-c184-2dc3-9ee22bb87451@ericsson.com \
--to=simon.marchi@ericsson.com \
--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