Fix crash with "maint print arc"
authorTom Tromey <tom@tromey.com>
Fri, 27 May 2022 13:52:16 +0000 (07:52 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 27 May 2022 13:52:16 +0000 (07:52 -0600)
commit509e6230915a050d510a36ca9482193c76a6a216
tree7196a6d712c9217b35041d41dde825c1168e15a8
parent202be274a41a912f705141d9fb3574f4b0d415e1
Fix crash with "maint print arc"

Luis noticed that "maint print arc" would crash, because the command
handler did not find "show" in the command name, violating an
invariant.  This patch fixes the bug by changing the registration to
use add_basic_prefix_cmd instead.
gdb/arc-tdep.c