From 237cd90620dcd6226d6909b34932d192d3473423 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 9 Oct 2010 01:40:57 +0000 Subject: 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 --- lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp') 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; } -- cgit v1.2.3