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 | 1927e618630942385e8e5dcc14780711fcd09a07 (patch) | |
tree | 3dc2afd61f1bc519a9dc00021332cf2d3b38be0f /gdb/ChangeLog | |
parent | 16d02dc907c5717b5f47076bb90ae3795e73b59f (diff) | |
download | gdb-1927e618630942385e8e5dcc14780711fcd09a07.zip gdb-1927e618630942385e8e5dcc14780711fcd09a07.tar.gz gdb-1927e618630942385e8e5dcc14780711fcd09a07.tar.bz2 |
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 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f18ab96..21aebc3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-04-09 Pedro Alves <palves@redhat.com> + + * remote.c (unpush_and_perror): New function. + (readchar, remote_serial_write): Use it. + 2013-04-09 Markus Metzger <markus.t.metzger@intel.com> * NEWS: Mention new btrace RSP packets. |