Fixed process.gdb-remote to be able to properly propagate the signals and
obey the UnixSignals table that we have in the process.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116139 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
index f1847d8..d666734 100644
--- a/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
+++ b/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
@@ -78,8 +78,12 @@
bool
ThreadGDBRemote::WillResume (StateType resume_state)
{
- // TODO: cache for next time in case we can match things up??
ClearStackFrames();
+ // Call the Thread::WillResume first. If we stop at a signal, the stop info
+ // class for signal will set the resume signal that we need below. The signal
+ // stuff obeys the Process::UnixSignal defaults.
+ Thread::WillResume(resume_state);
+
int signo = GetResumeSignal();
switch (resume_state)
@@ -106,7 +110,6 @@
default:
break;
}
- Thread::WillResume(resume_state);
return true;
}