[PATCH 1/2] Move registering maint commands from maint.c to psymtalb.c
Tom Tromey
tromey@redhat.com
Wed Dec 19 14:23:00 GMT 2012
>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
Yao> I don't see the reason we have to register 'maint commands' inside
Yao> maint.c. This patch moves code registering commands out of maint.c so
Yao> that the command functions can be 'static'.
Thanks.
Yao> +void _initialize_psymtab (void);
I've been writing
initialize_file_ftype _initialize_psymtab;
in similar cases.
Tom
More information about the Gdb-patches
mailing list