summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-09 01:40:57 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-09 01:40:57 +0000
commit237cd90620dcd6226d6909b34932d192d3473423 (patch)
treead34e88df14e0daadc6f50b0ae699c06c2abf172 /lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
parenta2fabff4f6f4ccbbd6d237d6737720a91b6cc030 (diff)
downloadbcm5719-llvm-237cd90620dcd6226d6909b34932d192d3473423.tar.gz
bcm5719-llvm-237cd90620dcd6226d6909b34932d192d3473423.zip
Fixed process.gdb-remote to be able to properly propagate the signals and
obey the UnixSignals table that we have in the process. llvm-svn: 116139
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
index f1847d861da..d6667340e3e 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
@@ -78,8 +78,12 @@ ThreadGDBRemote::GetQueueName ()
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 @@ ThreadGDBRemote::WillResume (StateType resume_state)
default:
break;
}
- Thread::WillResume(resume_state);
return true;
}
OpenPOWER on IntegriCloud