Re: [SH] regs command

Tom Tromey
2012-05-16T18:47:23Z

>>>>> "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