aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.h
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2011-07-21 11:03:48 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2011-07-21 11:03:48 +0000
commitd17b6f81012b6844de08934193fe7cb7db8cbd5f (patch)
tree38de35dc7c7f44f1f76fbe6af3bed4037b600e00 /gdb/top.h
parent3779080d04bb9504542076e02969f77dff46ae63 (diff)
downloadgdb-d17b6f81012b6844de08934193fe7cb7db8cbd5f.zip
gdb-d17b6f81012b6844de08934193fe7cb7db8cbd5f.tar.gz
gdb-d17b6f81012b6844de08934193fe7cb7db8cbd5f.tar.bz2
2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com> * top.c (set_prompt): Rewrite to free previous prompt, free asynch_new_prompt and set both on new prompts. * event-top.c (display_gdb_prompt): Add prompt substitution logic. * python/python.c (before_prompt_hook): New function. 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python.exp: Add prompt substitution tests. 2011-07-21 Phil Muldoon <pmuldoon@redhat.com> * observer.texi (GDB Observers): Add before_prompt observer. * gdb.texinfo (Basic Python): Add documentation for prompt substitution.
Diffstat (limited to 'gdb/top.h')
-rw-r--r--gdb/top.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.h b/gdb/top.h
index 4a6e8fb..24ec2f2 100644
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -55,7 +55,7 @@ extern char *get_prompt (void);
/* This function copies the specified string into the string that
is used by gdb for its command prompt. */
-extern void set_prompt (char *);
+extern void set_prompt (const char *);
/* From random places. */
extern int readnow_symbol_files;