From: Andrew Burgess <aburgess@redhat.com>
To: gdb-patches@sourceware.org
Cc: Andrew Burgess <aburgess@redhat.com>
Subject: [PATCH 00/16] Default register groups, and general related cleanup
Date: Thu, 31 Mar 2022 22:04:06 +0100 [thread overview]
Message-ID: <cover.1648760270.git.aburgess@redhat.com> (raw)
This work started with this thread:
https://sourceware.org/pipermail/gdb-patches/2022-March/187071.html
In which it was discovered that the ppc targets don't add the default
register groups during gdbarch initialisation.
I've run into this problem before, and every time I wonder why the
default register groups aren't added by default in all cases.
So, looked at doing just that.
But the register group management code was feeling a bit crusty, so I
thought I'd clean it up.
Then I hit some bugs, which I figured I'd fix.
Anyway, patch #9 is what I set out to do. Everything else is me
trying to improve the register group handling code.
All feedback welcome.
Thanks,
Andrew
---
Andrew Burgess (16):
gdb: don't try to use readline before it's initialized
gdb: add some const in gdb/reggroups.c
gdb: make gdbarch_register_reggroup_p take a const reggroup *
gdb: switch to using 'const reggroup *' in tui-regs.{c,h}
gdb: use 'const reggroup *' in python/py-registers.c file
gdb: have reggroup_find return a const
gdb/tui: avoid theoretical bug with 'tui reg' command
gdb/tui: fix 'tui reg next/prev' command when data window is hidden
gdb: always add the default register groups
gdb: convert reggroups to use a std::vector
gdb: remove reggroup_next and reggroup_prev
gdb: more 'const' in gdb/reggroups.{c,h}
gdb: make the pre-defined register groups const
gdb: convert reggroup to a C++ class with constructor, etc
gdb: move struct reggroup into reggroups.h header
gdb: update comments throughout reggroups.{c,h} files
gdb/aarch64-tdep.c | 19 +--
gdb/alpha-tdep.c | 2 +-
gdb/amd64-linux-tdep.c | 2 +-
gdb/arc-tdep.c | 17 --
gdb/arm-tdep.c | 2 +-
gdb/completer.c | 8 +-
gdb/csky-tdep.c | 14 +-
gdb/gdbarch-components.py | 2 +-
gdb/gdbarch-gen.h | 4 +-
gdb/gdbarch.c | 2 +-
gdb/i386-linux-tdep.c | 2 +-
gdb/i386-tdep.c | 13 +-
gdb/i386-tdep.h | 2 +-
gdb/ia64-tdep.c | 2 +-
gdb/infcmd.c | 14 +-
gdb/lm32-tdep.c | 13 +-
gdb/m32c-tdep.c | 9 +-
gdb/m68hc11-tdep.c | 13 +-
gdb/mep-tdep.c | 12 +-
gdb/mips-tdep.c | 4 +-
gdb/msp430-tdep.c | 2 +-
gdb/nds32-tdep.c | 32 ++--
gdb/or1k-tdep.c | 14 +-
gdb/python/py-registers.c | 32 ++--
gdb/regcache-dump.c | 9 +-
gdb/reggroups.c | 298 ++++++++++++---------------------
gdb/reggroups.h | 94 +++++++----
gdb/riscv-tdep.c | 18 +-
gdb/rl78-tdep.c | 2 +-
gdb/rs6000-tdep.c | 2 +-
gdb/s390-tdep.c | 2 +-
gdb/sh-tdep.c | 2 +-
gdb/target-descriptions.c | 6 +-
gdb/target-descriptions.h | 2 +-
gdb/testsuite/gdb.tui/regs.exp | 26 +++
gdb/tui/tui-regs.c | 111 +++++++-----
gdb/tui/tui-regs.h | 9 +-
gdb/utils.c | 17 +-
gdb/xtensa-tdep.c | 25 +--
39 files changed, 373 insertions(+), 486 deletions(-)
--
2.25.4
next reply other threads:[~2022-03-31 21:04 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-31 21:04 Andrew Burgess [this message]
2022-03-31 21:04 ` [PATCH 01/16] gdb: don't try to use readline before it's initialized Andrew Burgess
2022-03-31 21:04 ` [PATCH 02/16] gdb: add some const in gdb/reggroups.c Andrew Burgess
2022-03-31 21:04 ` [PATCH 03/16] gdb: make gdbarch_register_reggroup_p take a const reggroup * Andrew Burgess
2022-04-04 22:35 ` Lancelot SIX
2022-04-05 8:24 ` Andrew Burgess
2022-03-31 21:04 ` [PATCH 04/16] gdb: switch to using 'const reggroup *' in tui-regs.{c, h} Andrew Burgess
2022-03-31 21:04 ` [PATCH 05/16] gdb: use 'const reggroup *' in python/py-registers.c file Andrew Burgess
2022-03-31 21:04 ` [PATCH 06/16] gdb: have reggroup_find return a const Andrew Burgess
2022-03-31 21:04 ` [PATCH 07/16] gdb/tui: avoid theoretical bug with 'tui reg' command Andrew Burgess
2022-03-31 21:04 ` [PATCH 08/16] gdb/tui: fix 'tui reg next/prev' command when data window is hidden Andrew Burgess
2022-03-31 21:04 ` [PATCH 09/16] gdb: always add the default register groups Andrew Burgess
2022-03-31 21:04 ` [PATCH 10/16] gdb: convert reggroups to use a std::vector Andrew Burgess
2022-03-31 21:04 ` [PATCH 11/16] gdb: remove reggroup_next and reggroup_prev Andrew Burgess
2022-04-05 23:11 ` Lancelot SIX
2022-04-06 12:06 ` Andrew Burgess
2022-03-31 21:04 ` [PATCH 12/16] gdb: more 'const' in gdb/reggroups.{c,h} Andrew Burgess
2022-03-31 21:04 ` [PATCH 13/16] gdb: make the pre-defined register groups const Andrew Burgess
2022-03-31 21:04 ` [PATCH 14/16] gdb: convert reggroup to a C++ class with constructor, etc Andrew Burgess
2022-03-31 21:04 ` [PATCH 15/16] gdb: move struct reggroup into reggroups.h header Andrew Burgess
2022-03-31 21:04 ` [PATCH 16/16] gdb: update comments throughout reggroups.{c,h} files Andrew Burgess
2022-04-06 14:28 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 00/16] Default register groups, and general related cleanup Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 01/16] gdb: don't try to use readline before it's initialized Andrew Burgess
2022-04-06 12:57 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 02/16] gdb: add some const in gdb/reggroups.c Andrew Burgess
2022-04-06 12:58 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 03/16] gdb: make gdbarch_register_reggroup_p take a const reggroup * Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 04/16] gdb: switch to using 'const reggroup *' in tui-regs.{c, h} Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 05/16] gdb: use 'const reggroup *' in python/py-registers.c file Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 06/16] gdb: have reggroup_find return a const Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 07/16] gdb/tui: avoid theoretical bug with 'tui reg' command Andrew Burgess
2022-04-06 13:02 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 08/16] gdb/tui: fix 'tui reg next/prev' command when data window is hidden Andrew Burgess
2022-04-06 13:13 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 09/16] gdb: always add the default register groups Andrew Burgess
2022-04-06 13:22 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 10/16] gdb: convert reggroups to use a std::vector Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 11/16] gdb: remove reggroup_next and reggroup_prev Andrew Burgess
2022-04-06 14:22 ` Simon Marchi
2022-04-06 14:23 ` Simon Marchi
2022-04-06 12:04 ` [PATCHv2 12/16] gdb: more 'const' in gdb/reggroups.{c,h} Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 13/16] gdb: make the pre-defined register groups const Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 14/16] gdb: convert reggroup to a C++ class with constructor, etc Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 15/16] gdb: move struct reggroup into reggroups.h header Andrew Burgess
2022-04-06 12:04 ` [PATCHv2 16/16] gdb: update comments throughout reggroups.{c, h} files Andrew Burgess
2022-04-06 14:34 ` [PATCHv2 00/16] Default register groups, and general related cleanup Simon Marchi
2022-04-07 15:16 ` Andrew Burgess
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=cover.1648760270.git.aburgess@redhat.com \
--to=aburgess@redhat.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).