aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-15 13:06:59 -0600
committerTom Tromey <tromey@adacore.com>2019-05-29 08:25:38 -0600
commit000439d52897541ad00a84026ac471b4f8cb3c97 (patch)
treee6aa4c015ea8da9b59e6127f9efcc84a49af61d2 /gdb/NEWS
parente33f2313bf63b77763739732be14b469b4b647b7 (diff)
downloadgdb-000439d52897541ad00a84026ac471b4f8cb3c97.zip
gdb-000439d52897541ad00a84026ac471b4f8cb3c97.tar.gz
gdb-000439d52897541ad00a84026ac471b4f8cb3c97.tar.bz2
Add "set print finish"
A user wanted to be able to disable the display of the value when using "finish" -- but still have the value entered into the value history in case it was useful later on. Part of the rationale here is that sometimes the value might be quite large, or expensive to display (in their case this was compounded by a rogue pretty-printer). This patch implements this idea. gdb/ChangeLog 2019-05-29 Tom Tromey <tromey@adacore.com> * NEWS: Add entry. * infcmd.c (print_return_value_1): Handle finish_print option. (show_print_finish): New function. (_initialize_infcmd): Add "set/show print finish" commands. * valprint.c (user_print_options): Initialize new member. * valprint.h (struct value_print_options) <finish_print>: New member. gdb/doc/ChangeLog 2019-05-29 Tom Tromey <tromey@adacore.com> * gdb.texinfo (Continuing and Stepping): Document new commands. gdb/testsuite/ChangeLog 2019-05-29 Tom Tromey <tromey@adacore.com> * gdb.base/finish.exp (finish_no_print): New proc. (finish_tests): Call it.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 6546b72..ab582c0 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -39,6 +39,13 @@ show may-call-functions
an error when a command (such as print expression) calls a function
in the program.
+set print finish [on|off]
+show print finish
+ This controls whether the `finish' command will display the value
+ that is returned by the current function. When `off', the value is
+ still entered into the value history, but it is not printed. The
+ default is `on'.
+
set print max-depth
show print max-depth
Allows deeply nested structures to be simplified when printing by