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/3] Change some functions to methods of program_space
Date: Fri, 13 Feb 2026 23:17:21 -0500	[thread overview]
Message-ID: <a242d8d7-76ad-4e59-a4fa-4e191a5481e9@simark.ca> (raw)
In-Reply-To: <20260213-random-methods-v1-0-59bdac57c3e1@tromey.com>



On 2026-02-13 16:09, Tom Tromey wrote:
> This changes a few functions to become methods of program_space.
> It also moves them to progspace.[ch], where they belong.
> 
> Regression tested on x86-64 Fedora 40.
> 
> Signed-off-by: Tom Tromey <tom@tromey.com>
> ---
> Tom Tromey (3):
>       Move entry point functions to program_space
>       Use std::optional in entry_point_address_query
>       Change have_*_symbols functions to methods of program_space
> 
>  gdb/ada-exp.y        |  4 ++--
>  gdb/arc-tdep.c       |  2 +-
>  gdb/arch-utils.c     |  2 +-
>  gdb/c-exp.y          |  4 ++--
>  gdb/cli/cli-cmds.c   |  4 ++--
>  gdb/d-exp.y          |  4 ++--
>  gdb/frame.c          |  8 +++----
>  gdb/go-exp.y         |  4 ++--
>  gdb/infcall.c        |  2 +-
>  gdb/linespec.c       | 10 ++++----
>  gdb/objfiles.c       | 65 ----------------------------------------------------
>  gdb/objfiles.h       | 22 ------------------
>  gdb/p-exp.y          |  4 ++--
>  gdb/parse.c          |  4 ++--
>  gdb/progspace.c      | 62 +++++++++++++++++++++++++++++++++++++++++++++++++
>  gdb/progspace.h      | 20 ++++++++++++++++
>  gdb/solib-frv.c      |  9 ++++----
>  gdb/source.c         |  4 ++--
>  gdb/symfile.c        |  8 +++----
>  gdb/symtab.c         |  8 +++----
>  gdb/tui/tui-disasm.c |  4 ++--
>  21 files changed, 125 insertions(+), 129 deletions(-)
> ---
> base-commit: 51b7445c65ff06a6d9740fc635be73287527a0a5
> change-id: 20260213-random-methods-2f946240d78d
> 
> Best regards,

I sent a comment about the naming on patch 3, but otherwise it all LGTM.

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon

      parent reply	other threads:[~2026-02-14  4:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-13 21:09 Tom Tromey
2026-02-13 21:09 ` [PATCH 1/3] Move entry point functions to program_space Tom Tromey
2026-02-13 21:09 ` [PATCH 2/3] Use std::optional in entry_point_address_query Tom Tromey
2026-02-13 21:09 ` [PATCH 3/3] Change have_*_symbols functions to methods of program_space Tom Tromey
2026-02-14  4:16   ` Simon Marchi
2026-02-14 17:33     ` Tom Tromey
2026-02-14  4:17 ` 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=a242d8d7-76ad-4e59-a4fa-4e191a5481e9@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