Eliminate async_annotation_suffix
authorPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 18:24:59 +0000 (18:24 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Mar 2016 18:24:59 +0000 (18:24 +0000)
commit608ff013aae02e3ac4687691db57bbcb8984fe18
tree0372ce45e0af7447aaa90a41370e6f6c1e5bb634
parentc70061cf94691182484924c79cbbdd2203ef92d5
Eliminate async_annotation_suffix

The comments and existence of this global are a bit of misleading
obfuscation, since this is only ever used to print the prompt
annotation, and never changes.  Just hardcode "prompt" where
necessary, as done for most other annotations.

gdb/ChangeLog:
2016-03-09  Pedro Alves  <palves@redhat.com>

* event-top.c (async_annotation_suffix): Delete.
(top_level_prompt, command_line_handler): Don't use
'async_annotation_suffix' and simplify.
* event-top.h (async_annotation_suffix): Delete declaration.
(init_main): Remove reference to 'async_annotation_suffix'.
gdb/ChangeLog
gdb/event-top.c
gdb/event-top.h
gdb/top.c