2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>

From  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.
This commit is contained in:
Elena Zannoni 2001-04-05 15:19:42 +00:00
parent 4a1968f494
commit 0191bed77d
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From 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.
2001-04-04 Andrew Cagney <ac131313@redhat.com>
Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.

View File

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