Avoid potencially-stale errno usage.
authorPedro Alves <palves@redhat.com>
Tue, 9 Apr 2013 12:18:34 +0000 (12:18 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 9 Apr 2013 12:18:34 +0000 (12:18 +0000)
commit1927e618630942385e8e5dcc14780711fcd09a07
tree3dc2afd61f1bc519a9dc00021332cf2d3b38be0f
parent16d02dc907c5717b5f47076bb90ae3795e73b59f
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.
gdb/ChangeLog
gdb/remote.c
This page took 0.029014 seconds and 4 git commands to generate.