This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[PATCH] top.c --annotate=2 and prompt stack
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] top.c --annotate=2 and prompt stack
- From: Jimmy Guo <guo at cup dot hp dot com>
- Date: Thu, 22 Jun 2000 12:50:21 -0700 (PDT)
2000-06-22 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.
Index: top.c
/usr/local/bin/diff -c -w -L top.c top.c@@/main/cygnus/35 top.c
*** top.c
--- top.c Thu Jun 22 12:44:51 2000
***************
*** 4136,4141 ****
--- 4136,4146 ----
async_annotation_suffix = "prompt";
/* Set the variable associated with the setshow prompt command. */
new_async_prompt = savestring (PROMPT (0), strlen (PROMPT (0)));
+
+ /* JYG: along with the prompt stack idea, --annotate=2
+ command line option needs extra processing. */
+ if (annotation_level > 1)
+ set_async_annotation_level (NULL, 0, NULL);
}
gdb_prompt_escape = 0; /* default to none. */