aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-06-10 21:41:51 +0200
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-07-08 23:31:54 +0200
commit1f6f6e21fa86dc3411a6498608f32e9eb24b7851 (patch)
tree37520dd0294952b805f1358230555b20e89bd4a9 /gdb/NEWS
parentea142fbfc9c1708a83d3532257d6728e1f5c142e (diff)
downloadgdb-1f6f6e21fa86dc3411a6498608f32e9eb24b7851.zip
gdb-1f6f6e21fa86dc3411a6498608f32e9eb24b7851.tar.gz
gdb-1f6f6e21fa86dc3411a6498608f32e9eb24b7851.tar.bz2
Ensure GDB printf command can print convenience var strings without a target.
Without this patch, GDB printf command calls malloc on the target, writes the convenience var content to the target, re-reads the content from the target, and then locally printf the string. This implies inferior calls, and does not work when there is no running inferior, or when the inferior is a core dump. With this patch, printf command can printf string convenience variables without inferior function calls. Ada string convenience variables can also be printed. gdb/ChangeLog 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be> * NEWS: Mention that GDB printf and eval commands can now print C-style and Ada-style convenience var strings without calling the inferior. * printcmd.c (printf_c_string): Locally print GDB internal var instead of transiting via the inferior. (printf_wide_c_string): Likewise. gdb/testsuite/ChangeLog 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be> * gdb.base/printcmds.exp: Test printing C string and C wide string convenience vars without transiting via the inferior. Also make test names unique.
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 34c544c..f7b6b88 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -118,6 +118,13 @@ apropos [-v] REGEXP
of matching commands and to use the highlight style to mark
the documentation parts matching REGEXP.
+printf
+eval
+ The GDB printf and eval commands can now print C-style and Ada-style
+ string convenience variables without calling functions in the program.
+ This allows to do formatted printing of strings without having
+ a running inferior, or when debugging a core dump.
+
show style
The "show style" and its subcommands are now styling
a style name in their output using its own style, to help