]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: Don't allow annotations to influence what else GDB prints
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 14 Jun 2019 22:43:00 +0000 (23:43 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 15 Jun 2019 20:39:06 +0000 (21:39 +0100)
commitec8e2b6d3051f0b4b2a8eee9917898e95046c62f
tree6954251f1ea7259a107f40632c8147beb231d3c7
parent0d3abd8cc936360f8c46502135edd2e646473438
gdb: Don't allow annotations to influence what else GDB prints

The annotations should be additional information printed by GDB to be
consumed by users (GUIs), but GDB shouldn't reduce what it prints
based on whether annotations are on or not.  However, this is what
happens for annotate_source_line.

This commit makes annotate_source_line a void function that simply
outputs the annotation information, GDB will then print the contents
of the source line to the terminal in the normal way.

Some tests needed to be updated after this commit.

gdb/ChangeLog:

* annotate.c (annotate_source_line): Change return type to void,
update implementation to match.
* annotate.h (annotate_source_line): Change return type to void,
update header comment.
* stack.c (print_frame_info): Don't change what frame information
is printed based on whether annotations are on or not.

gdb/testsuite/ChangeLog:

* gdb.base/annota1.exp: Update expected results.
* gdb.cp/annota2.exp: Likewise.
* gdb.cp/annota3.exp: Likewise.
gdb/ChangeLog
gdb/annotate.c
gdb/annotate.h
gdb/stack.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/annota1.exp
gdb/testsuite/gdb.cp/annota2.exp
gdb/testsuite/gdb.cp/annota3.exp