]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb, btrace: fix error diagnostics
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 18 Feb 2022 12:53:31 +0000 (13:53 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 11 Mar 2024 11:33:50 +0000 (11:33 +0000)
commitb792eb47f25f577ccef365fc9a5c20d55fad42d5
tree4899bd4fbc070127365be307f190a7b09533b91f
parent5eb2254a1d1d69980601e6530ee63e0e0e6a6c33
gdb, btrace: fix error diagnostics

When we improved error messages in

    cd393cec3ab gdb, btrace: improve error messages

we cleared the original errno.  When the error reason can not be explained
in a more detailed error message, and we fall back to the default error
message, it now gives Success as error.

Restore the original errno to fix that.
gdb/nat/linux-btrace.c