This is the mail archive of the gdb-patches@sources.redhat.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]

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



This is a really old patch.
I just committed it. With a slightly modified comment.

Elena


http://sources.redhat.com/ml/gdb-patches/2000-06/msg00279.html

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]