This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Move registering maint commands from maint.c to psymtalb.c
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 19 Dec 2012 07:23:02 -0700
- Subject: Re: [PATCH 1/2] Move registering maint commands from maint.c to psymtalb.c
- References: <1355903736-25543-1-git-send-email-yao@codesourcery.com>
>>>>> "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