diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-09 12:18:34 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-09 12:18:34 +0000 |
commit | e1680b9894e7e24e37b1fb89c3f3c5cf8f35f13f (patch) | |
tree | e7a886a6975828c99c0107240475591b5fba297b /bfd/doc | |
parent | 2ea5f4d0159a0be1076012833e14444d18ad236b (diff) | |
download | gdb-e1680b9894e7e24e37b1fb89c3f3c5cf8f35f13f.tar.gz |
Avoid potencially-stale errno usage.
The current throw_perror_with_name/TARGET_CLOSE_ERROR calls assume
errno is still set to the right error, although remote_unpush_target
is called in between, which may well change errno.
Tested on x86_64 Fedora 17 w/ gdbserver.
gdb/
2013-04-09 Pedro Alves <palves@redhat.com>
* remote.c (unpush_and_perror): New function.
(readchar, remote_serial_write): Use it.
Diffstat (limited to 'bfd/doc')
0 files changed, 0 insertions, 0 deletions