Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Remove make_cleanup_free_section_addr_info
Date: Wed, 14 Mar 2018 21:20:00 -0000	[thread overview]
Message-ID: <d0214c42f656c5ce04b40d6f420c6d36@polymtl.ca> (raw)
In-Reply-To: <20180313165529.23237-1-tom@tromey.com>

On 2018-03-13 12:55, Tom Tromey wrote:
> This removes make_cleanup_free_section_addr_info, instead introducing
> a new section_addr_info_up type and changing all the uses.  While
> doing this, I noticed that addrs_section_sort could be changed to
> return a std::vector, allowing the removal of even more cleanups.
> 
> Regression tested by the buildbot.

Hi Tom,

Did you consider changing the section_addr_info struct to use entirely 
by an std::vector<other_sections>?  Functions that return a 
section_addr_info could return a vector directly (by value? is that how 
we say it?), so we shouldn't need any custom unique pointer.  Then, 
other_sections::name can be made into a string, removing the need to 
free it by hand.

Simon


  reply	other threads:[~2018-03-14 21:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-13 16:55 Tom Tromey
2018-03-14 21:20 ` Simon Marchi [this message]
2018-03-16  2:45   ` Tom Tromey
2018-03-16  3:29     ` Simon Marchi
2018-03-16 19:04       ` Tom Tromey
2018-03-16 20:01         ` 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=d0214c42f656c5ce04b40d6f420c6d36@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