From 1c499525c6cd5039c61763b9b5a2f9de77ecf05c Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Thu, 5 Apr 2001 15:19:42 +0000 Subject: [PATCH] 2001-04-05 Elena Zannoni From Jimmy Guo * 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. --- gdb/ChangeLog | 7 +++++++ gdb/top.c | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 47b1d4c239..c508d1e54c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2001-04-05 Elena Zannoni + + From Jimmy Guo + * 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. + 2001-04-04 Andrew Cagney Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets. diff --git a/gdb/top.c b/gdb/top.c index 8cb66536f4..785e4a6697 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. */ -- 2.11.0