]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: make command classes be bitmaps
authorGuinevere Larsen <guinevere@redhat.com>
Thu, 18 Sep 2025 19:09:59 +0000 (16:09 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Wed, 5 Nov 2025 21:17:22 +0000 (18:17 -0300)
commit7028626eff3af25eb28a8cc16598b3ddb7186ea3
treea82e231acf199bad8668d8249e7e3a729b2f62d1
parent0e7ca0fdc8f8e856348a08a7c92dc26d92dd6863
gdb: make command classes be bitmaps

This commit makes it so GDB's command classes can be represented with a
single bit, allowing for a command to have multiple classes.  This is
primarily done as preparation for the next patch, but it can provide
value on its own as some commands could be described as belonging to
multiple classes, such as "record" being obscure and related to running
the inferior.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/cli/cli-dump.c
gdb/command.h