summaryrefslogtreecommitdiff
path: root/gdb/top.h
diff options
context:
space:
mode:
authorpmuldoon <pmuldoon>2011-07-21 11:03:43 +0000
committerpmuldoon <pmuldoon>2011-07-21 11:03:43 +0000
commit6ca636601466311802dfbc339485c16fab5bc77b (patch)
tree7e6268b76cb4016bb1fa6b3688faf71ce0aa8732 /gdb/top.h
parentab80d2f364824d136e19c3161523b2308db1760d (diff)
downloadgdb-6ca636601466311802dfbc339485c16fab5bc77b.tar.gz
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 4a6e8fba870..24ec2f20c51 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;