Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 0/9] Remove some macros from exec.h and progspace.h
Date: Wed, 22 Jul 2020 08:38:45 -0400	[thread overview]
Message-ID: <13552ab4-55e1-123a-fcb5-2b7473e47005@simark.ca> (raw)
In-Reply-To: <20200722033444.18522-1-tom@tromey.com>

On 2020-07-21 11:34 p.m., Tom Tromey wrote:
> This series removes some macros from exec.h and progspace.h.  In
> particular, macros that hide that some global variable is used are
> removed.
> 
> I find these macros somewhat obscure.  I think patches #2 and #6 show
> why -- it turns out that some code here was easily parameterized and
> did not need to use a global, or even save/restore the current program
> space.
> 
> Let me know what you think.  Like the other series along these lines,
> I don't see any need to check them in before the branch is made.

Thanks for doing this!  That makes the dependency on current_program_space
more apparent.  I'm sure in many cases it will be possible to change the
reference to current_program_space to be a parameter, your patch enables
that.

Simon


      parent reply	other threads:[~2020-07-22 12:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22  3:34 Tom Tromey
2020-07-22  3:34 ` [PATCH 1/9] Remove exec_filename macro Tom Tromey
2020-07-22  3:34 ` [PATCH 2/9] Change exec_close to be a method on program_space Tom Tromey
2020-07-22  3:34 ` [PATCH 3/9] Remove commented-out code from gcore.c Tom Tromey
2020-07-22  3:34 ` [PATCH 4/9] Remove exec_bfd_mtime define Tom Tromey
2020-07-22  3:34 ` [PATCH 5/9] Remove current_target_sections macro Tom Tromey
2020-07-22 12:20   ` Simon Marchi
2020-07-22 12:39     ` Simon Marchi
2020-07-22 14:11       ` Tom Tromey
2020-07-22  3:34 ` [PATCH 6/9] Don't change current program space in exec_target::close Tom Tromey
2020-07-22 12:22   ` Simon Marchi
2020-07-22  3:34 ` [PATCH 7/9] Remove the exec_bfd macro Tom Tromey
2020-07-22  3:34 ` [PATCH 8/9] Change program_space::ebfd to a gdb_bfd_ref_ptr Tom Tromey
2020-07-22  3:34 ` [PATCH 9/9] Remove symfile_objfile macro Tom Tromey
2020-07-22 12:38 ` Simon Marchi [this message]

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=13552ab4-55e1-123a-fcb5-2b7473e47005@simark.ca \
    --to=simark@simark.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