Don't create empty literal pieces
authorTom Tromey <tom@tromey.com>
Sun, 22 Sep 2019 22:06:03 +0000 (16:06 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 1 Oct 2019 21:12:37 +0000 (15:12 -0600)
commit0dfe5bfbb7e7a3e55c57d1b59c265dc1a3cd9fc7
tree7d49e611a4042f0e496d6c231879d40bd2ff2164
parente43b10e10eba9d9493a0ad40176b2aea9cfb62ab
Don't create empty literal pieces

I noticed that format_pieces can create an empty literal piece.
However, there's never a need for one, so this patch removes the
possibility.

gdb/ChangeLog
2019-10-01  Tom Tromey  <tom@tromey.com>

* unittests/format_pieces-selftests.c: Update.  Add final format.
* gdbsupport/format.c (format_pieces::format_pieces): Don't add
empty literal pieces.
gdb/ChangeLog
gdb/gdbsupport/format.c
gdb/unittests/format_pieces-selftests.c
This page took 0.025606 seconds and 4 git commands to generate.