diff options
Diffstat (limited to 'gdbserver/ax.cc')
-rw-r--r-- | gdbserver/ax.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/ax.cc b/gdbserver/ax.cc index 567ef7f..18fc894 100644 --- a/gdbserver/ax.cc +++ b/gdbserver/ax.cc @@ -817,7 +817,6 @@ ax_printf (CORE_ADDR fn, CORE_ADDR chan, const char *format, { const char *f = format; int i; - const char *current_substring; int nargs_wanted; ax_debug ("Printf of \"%s\" with %d args", format, nargs); @@ -835,7 +834,8 @@ ax_printf (CORE_ADDR fn, CORE_ADDR chan, const char *format, i = 0; for (auto &&piece : fpieces) { - current_substring = piece.string; + const char *current_substring = fpieces.piece_str (piece); + ax_debug ("current substring is '%s', class is %d", current_substring, piece.argclass); switch (piece.argclass) |