This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]