public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@efficios.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb: remove core_bfd macro
Date: Tue, 6 Feb 2024 10:57:01 -0500	[thread overview]
Message-ID: <8a96ce76-fea0-43d2-8253-b5d5be45f147@efficios.com> (raw)
In-Reply-To: <87v872mmjg.fsf@tromey.com>

On 2/5/24 20:03, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@efficios.com> writes:
> 
> Simon> The core_bfd macro hides a use of current_program_space.  Remove it, so
> Simon> that we have the opportunity to get the program space from the context,
> Simon> if possible.  I guess that the macro was introduced at some point to
> Simon> replace a global variable of the same name without changing all the
> Simon> uses.
> 
> Thanks.
> Approved-By: Tom Tromey <tom@tromey.com>

Thanks, will push.

> These kinds of macros are bad; though at the same time I've added them
> on occasion to make some series simpler.  I may have even added this
> one, I didn't look.

I understand they help go quicker, but I don't mind doing the legwork
to get rid of them, I think it's worth it in the long run.

Simon

      reply	other threads:[~2024-02-06 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-05 21:13 Simon Marchi
2024-02-06  1:03 ` Tom Tromey
2024-02-06 15:57   ` 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=8a96ce76-fea0-43d2-8253-b5d5be45f147@efficios.com \
    --to=simon.marchi@efficios.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).