X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmain.h;h=958b597ded7a5ac137607f7bd91abc3203b3da8c;hb=8ee5199a42ae43b3a9b349640b8a0e2125ede34f;hp=49b64ee2bff0af685288f68bce12d011c1b05645;hpb=28e7fd62340426746f9c896cbc40c5d374ec47aa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/main.h b/gdb/main.h index 49b64ee2bf..958b597ded 100644 --- a/gdb/main.h +++ b/gdb/main.h @@ -36,4 +36,16 @@ extern int return_child_result_value; extern int batch_silent; extern int batch_flag; +/* From mingw-hdep.c, used by main.c. */ + +/* Return argv[0] in absolute form, if possible, or ARGV0 if not. The + 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