aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-04-05 15:19:42 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2001-04-05 15:19:42 +0000
commit0191bed77da12d7463ea3c792d33347d6d697956 (patch)
treeb385238ce70c32306998db58e709b7a8d13358de /gdb/top.c
parent4a1968f4944c8368cf51943e8e3fb02a9bc324a3 (diff)
downloadgdb-0191bed77da12d7463ea3c792d33347d6d697956.zip
gdb-0191bed77da12d7463ea3c792d33347d6d697956.tar.gz
gdb-0191bed77da12d7463ea3c792d33347d6d697956.tar.bz2
2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Jimmy Guo <guo@cup.hp.com> * top.c (init_main): set prompt if annotation_level>1, this is necessary when annotation_level is set to 2 via --annotate=2 command line option.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 8cb6653..785e4a6 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1996,6 +1996,12 @@ init_main (void)
async_annotation_suffix = "prompt";
/* Set the variable associated with the setshow prompt command. */
new_async_prompt = savestring (PROMPT (0), strlen (PROMPT (0)));
+
+ /* If gdb was started with --annotate=2, this is equivalent to
+ the user entering the command 'set annotate 2' at the gdb
+ prompt, so we need to do extra processing. */
+ if (annotation_level > 1)
+ set_async_annotation_level (NULL, 0, NULL);
}
gdb_prompt_escape = 0; /* default to none. */