Fix misreporting of omitted bytes for large remote packets
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 9 Mar 2018 00:00:03 +0000 (19:00 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 9 Mar 2018 00:00:59 +0000 (19:00 -0500)
commit567a3e54d211ab8d09119f99fed10b57db895450
tree9a177f1d52b3438fb99ab767c0cc3bd8eceb7880
parentf6d8ae8f07b63c711d4b62403e1766b5eea90103
Fix misreporting of omitted bytes for large remote packets

In remote.c, when the output of "set debug remote" is truncated, the
number of characters reported is incorrect.  What is reported is the
number of characters added by the quoting, not the number of characters
that were truncated.

gdb/ChangeLog:

* remote.c (putpkt_binary): Fix omitted bytes reporting.
(getpkt_or_notif_sane_1): Likewise.
gdb/ChangeLog
gdb/remote.c