gdb/linux-nat: check ptrace return value in linux_nat_get_siginfo
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 2 Dec 2022 20:09:23 +0000 (15:09 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 5 Dec 2022 21:38:45 +0000 (16:38 -0500)
commit7cc662bcb70fc4eb5a7b5883fd27fab0d4e372cb
treeaa74ffe885eefc2e130831493a9d46cbe17abda4
parent8aa1556f2e88851f9bfcacd3f624c8182946a6f6
gdb/linux-nat: check ptrace return value in linux_nat_get_siginfo

Not a big deal, but it seems strange to check errno instead of the
ptrace return value to know whether it succeeded.

Change-Id: If0a6d0280ab0e5ecb077e546af0d6fe489c5b9fd
gdb/linux-nat.c