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] Add new function to access gdb_program_name.


>>>>> "Andrew" == Andrew Burgess <aburgess@broadcom.com> writes:

Andrew> The deprecated_init_ui_hook is used from gdbtk just to get hold
Andrew> of gdb's argv[0].

Andrew> We currently hold this in the variable gdb_program_name within
Andrew> main.c, so adding a read only accessor function does not feel
Andrew> unreasonable to me, and would allow gdbtk to stop using
Andrew> deprecated_init_ui_hook.

Andrew> What do you think?

Seems reasonable to me.

Andrew> +extern const char * get_gdb_program_name (void);

Extra space here after the "*".

Ok with that changed.

Tom


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