public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/4] Remove remaining ALL_ iterator macros
Date: Sun, 16 Apr 2023 10:28:26 -0600	[thread overview]
Message-ID: <20230416-remove-all-macros-v1-0-f118956faafe@tromey.com> (raw)

This series finishes my long-term goal of removing all the ALL_*
iterator macros from gdb.  It replaces the remaining ones with
iterator ranges so that for-each can be used instead.

Regression tested on x86-64 Fedora 36.

---
Tom Tromey (4):
      Rename objfile::sections
      Remove ALL_OBJFILE_OSECTIONS
      Remove ALL_DICT_SYMBOLS
      Remove ALL_BREAKPOINTS_SAFE

 gdb/arm-tdep.c        |   4 +-
 gdb/block.h           |   4 ++
 gdb/breakpoint.c      | 134 ++++++++++++++++++++-----------------------
 gdb/buildsym.c        |  15 ++---
 gdb/dictionary.h      |  55 ++++++++++++++----
 gdb/exec.c            |   4 +-
 gdb/gcore.c           |   6 +-
 gdb/hppa-bsd-tdep.c   |  59 +++++++++----------
 gdb/hppa-linux-tdep.c |  64 ++++++++++-----------
 gdb/hppa-tdep.c       |  29 +++++-----
 gdb/ia64-tdep.c       |  99 ++++++++++++++++----------------
 gdb/machoread.c       |   7 +--
 gdb/maint.c           |  10 ++--
 gdb/minsyms.c         |   4 +-
 gdb/objfiles.c        |  38 +++++--------
 gdb/objfiles.h        | 155 +++++++++++++++++++++++++++++++++++---------------
 gdb/printcmd.c        |   3 +-
 gdb/solib-aix.c       |   8 +--
 gdb/solib-dsbt.c      |   5 +-
 gdb/solib-frv.c       |   5 +-
 gdb/symfile.c         |  38 +++++--------
 gdb/symmisc.c         |   6 +-
 gdb/symtab.c          |   8 +--
 gdb/xcoffread.c       |   3 +-
 gdb/xstormy16-tdep.c  |  53 ++++++++---------
 gdb/z80-tdep.c        |  16 +++---
 26 files changed, 435 insertions(+), 397 deletions(-)
---
base-commit: b01ee1bf90fa6c0d6c0a23367433e5c1f0de87c0
change-id: 20230416-remove-all-macros-8317d531f169

Best regards,
-- 
Tom Tromey <tom@tromey.com>


             reply	other threads:[~2023-04-16 16:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-16 16:28 Tom Tromey [this message]
2023-04-16 16:28 ` [PATCH 1/4] Rename objfile::sections Tom Tromey
2023-04-17 17:57   ` Keith Seitz
2023-05-07 18:43     ` Tom Tromey
2023-04-16 16:28 ` [PATCH 2/4] Remove ALL_OBJFILE_OSECTIONS Tom Tromey
2023-04-16 16:28 ` [PATCH 3/4] Remove ALL_DICT_SYMBOLS Tom Tromey
2023-04-16 16:28 ` [PATCH 4/4] Remove ALL_BREAKPOINTS_SAFE Tom Tromey
2023-05-08  2:24   ` Simon Marchi
2023-05-08 14:59     ` 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=20230416-remove-all-macros-v1-0-f118956faafe@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    /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).