aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-09-18 11:41:38 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-09-18 11:41:38 +0000
commitc88a15316ec1c0aca20e741a92b2189cbb020ca0 (patch)
tree1b2cfc8fe7028580bec58a13dad7fa43fadf13cd /gdb/main.h
parentbc080e949dc7cbeafd60773d658f58afcf60e498 (diff)
downloadgdb-c88a15316ec1c0aca20e741a92b2189cbb020ca0.zip
gdb-c88a15316ec1c0aca20e741a92b2189cbb020ca0.tar.gz
gdb-c88a15316ec1c0aca20e741a92b2189cbb020ca0.tar.bz2
Add new function to access gdb_program_name.
https://sourceware.org/ml/gdb-patches/2013-09/msg00225.html gdb/ChangeLog * main.h (get_gdb_program_name): Add declaration. * main.c (get_gdb_program_name): Add definition.
Diffstat (limited to 'gdb/main.h')
-rw-r--r--gdb/main.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/main.h b/gdb/main.h
index a5260b1..a846d9f 100644
--- a/gdb/main.h
+++ b/gdb/main.h
@@ -42,4 +42,10 @@ extern int batch_flag;
return value is in malloc'ed storage. */
extern char *windows_get_absolute_argv0 (const char *argv0);
+/* Return read only pointer to the name of gdb as it was invoked. This
+ might have been expanded to an absolute path if required by the
+ platform. Could return NULL if called before gdb has had a chance to
+ parse the argv array. */
+extern const char * get_gdb_program_name (void);
+
#endif