This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add new function to access gdb_program_name.
- From: Tom Tromey <tromey at redhat dot com>
- To: "Andrew Burgess" <aburgess at broadcom dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 09 Sep 2013 10:52:03 -0600
- Subject: Re: [PATCH] Add new function to access gdb_program_name.
- Authentication-results: sourceware.org; auth=none
- References: <5229CC5F dot 4030309 at broadcom dot com>
>>>>> "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