diff options
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/ax.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 053cf17..2be87a6 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2018-03-14 Tom Tromey <tom@tromey.com> + + PR cli/14977: + * ax.c (ax_printf): Special case for NULL. + 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> * linux-low.c (linux_qxfer_libraries_svr4): Use diff --git a/gdb/gdbserver/ax.c b/gdb/gdbserver/ax.c index b42ee54..c754383 100644 --- a/gdb/gdbserver/ax.c +++ b/gdb/gdbserver/ax.c @@ -847,6 +847,11 @@ ax_printf (CORE_ADDR fn, CORE_ADDR chan, const char *format, int j; tem = args[i]; + if (tem == 0) + { + printf (current_substring, "(null)"); + break; + } /* This is a %s argument. Find the length of the string. */ for (j = 0;; j++) |