mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-04 10:24:13 +00:00
Add ptrace error handling in lynx_resume
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace sets errno.
This commit is contained in:
parent
e6352c8f63
commit
9044dee230
@ -1,3 +1,8 @@
|
||||
2013-01-07 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
|
||||
sets errno.
|
||||
|
||||
2013-01-07 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
|
||||
|
@ -359,7 +359,11 @@ lynx_resume (struct thread_resume *resume_info, size_t n)
|
||||
ptid = thread_to_gdb_id (current_inferior);
|
||||
|
||||
regcache_invalidate ();
|
||||
|
||||
errno = 0;
|
||||
lynx_ptrace (request, ptid, 1, signal, 0);
|
||||
if (errno)
|
||||
perror_with_name ("ptrace");
|
||||
}
|
||||
|
||||
/* Resume the execution of the given PTID. */
|
||||
|
Loading…
Reference in New Issue
Block a user