This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [SH] regs command
>>>>> "Thomas" == Thomas Schwinge <thomas@codesourcery.com> writes:
Thomas> That's actually what I have tried first, but failed: due to
Thomas> add_alias_cmd returning a NULL pointer (in c), deprecated_cmd
Thomas> obviously failed. And as we'd remove this code in a few weeks
Thomas> anyway, I decided not to spend more time on this, and instead go
Thomas> the easy route.
This means you registered "regs" before the thing it aliases was
registered. This can happen because _initialize_xxx order is not
defined.
There's no easy fix :(. You could move "regs" initialization to a
better spot but then it will be visible in all builds of gdb, not just
those with this target compiled in.
Tom