new function perror_string extracted out of throw_perror_with_name.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 11 Oct 2013 08:20:10 +0000 (08:20 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 11 Oct 2013 08:20:10 +0000 (08:20 +0000)
commit0cf4063e29439cdf8693d2357ead6659c6defd74
tree7918a5de515b9bf85e8c74f3e674c66f00d64b7c
parentbb66bd5176cc5c47d44fdc693c0d6219425af5c5
new function perror_string extracted out of throw_perror_with_name.

The main purpose of this patch is to extract the part of
throw_perror_with_name that computes a string providing the system
error message combined with a prefix string.  This will become useful
later on to provide a routine which prints a warning using that
perror_string, rather than throwing an error.

gdb/ChangeLog:

        * utils.c (perror_string): New function, extracted out of
        throw_perror_with_name.
        (throw_perror_with_name): Rework to use perror_string.
gdb/ChangeLog
gdb/utils.c