This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Move registering maint commands from maint.c to psymtalb.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]