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:
Joel Brobecker 2013-01-07 11:43:16 +00:00
parent e6352c8f63
commit 9044dee230
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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. */