Simplify print_sys_errmsg
authorTom Tromey <tromey@adacore.com>
Thu, 31 Oct 2019 22:46:16 +0000 (16:46 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 1 Nov 2019 16:34:21 +0000 (10:34 -0600)
commit5df96a4e6e8f1521274acb5beb54063c35aeec6e
tree6bfc777b7df9c85cce9cdb671acb9e54703b9f02
parentb74816496d5113596dd80bd071ed9bcf152c96cd
Simplify print_sys_errmsg

On irc, Christian pointed out that print_sys_errmsg could be
simplified by avoiding alloca entirely.  This patch implements this.

gdb/ChangeLog
2019-11-01  Tom Tromey  <tromey@adacore.com>

* utils.c (print_sys_errmsg): Simplify.

Change-Id: Ic399dade274ea61b63ef0540b3a3be2f0f80160a
gdb/ChangeLog
gdb/utils.c