diff options
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 49aa286..581a864 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 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. 2013-01-07 Joel Brobecker <brobecker@adacore.com> diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 4aba379..ccee8c8 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -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. */ |