[GDBserver] Avoid stale errno
authorPedro Alves <palves@redhat.com>
Tue, 15 Jul 2014 14:35:28 +0000 (15:35 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 15 Jul 2014 14:35:28 +0000 (15:35 +0100)
commitce9e3fe795c05bd7458a1466e14104f489f2b483
tree9481716ff81029a4ffd8cc37693651256a145c14
parent19f2f6a9c4aeb0e37d448cb5593164e25ab055a9
[GDBserver] Avoid stale errno

Although most compilers follow right-to-left evaluation order, the
order of evaluation of a function call's arguments is really
unspecified.  target_pid_to_str or ptid_of may well clobber errno when
we get to evaluate the third argument to debug_printf.

gdb/gdbserver/
2014-07-15  Pedro Alves  <palves@redhat.com>

* linux-low.c (linux_kill_one_lwp): Save errno and work with saved
copy.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
This page took 0.026064 seconds and 4 git commands to generate.