diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/serial.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3097a31..61464c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-06-10 Joel Brobecker <brobecker@adacore.com> + * serial.c (serial_write): Fix index of character to be printed + in call to serial_logchar when serial debug traces are enabled. + +2014-06-10 Joel Brobecker <brobecker@adacore.com> + * gdbtypes (resolve_dynamic_range): Add function description. 2014-06-09 Gary Benson <gbenson@redhat.com> diff --git a/gdb/serial.c b/gdb/serial.c index e780bbe..d443508 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -423,7 +423,7 @@ serial_write (struct serial *scb, const void *buf, size_t count) for (c = 0; c < count; c++) { fprintf_unfiltered (gdb_stdlog, "["); - serial_logchar (gdb_stdlog, 'w', str[count] & 0xff, 0); + serial_logchar (gdb_stdlog, 'w', str[c] & 0xff, 0); fprintf_unfiltered (gdb_stdlog, "]"); } gdb_flush (gdb_stdlog); |