]> Git Repo - binutils.git/blobdiff - gdb/top.c
2001-04-05 Elena Zannoni <[email protected]>
[binutils.git] / gdb / top.c
index 8cb66536f447b8f6b9fc42178ac39e8d79c74d82..785e4a66977893d6cf8a54e0741ce064eed65acb 100644 (file)
--- 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.  */
 
This page took 0.024956 seconds and 4 git commands to generate.