[PATCH] top.c --annotate=2 and prompt stack

Jimmy Guo guo@cup.hp.com
Thu Jun 22 14:44:00 GMT 2000


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.  */
  



More information about the Gdb-patches mailing list