[Lldb-commits] [PATCH] D11455: [MIPS] Create Unix Signals based on target architecture

Jaydeep Patil jaydeep.patil at imgtec.com
Thu Jul 23 21:01:49 PDT 2015


jaydeep updated this revision to Diff 30559.
jaydeep added a comment.

Thanks Greg
Addressed review comments.


Repository:
  rL LLVM

http://reviews.llvm.org/D11455

Files:
  source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
===================================================================
--- source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -823,7 +823,13 @@
         log->Printf ("ProcessGDBRemote::%s pid %" PRIu64 ": normalized target architecture triple: %s", __FUNCTION__, GetID (), GetTarget ().GetArchitecture ().GetTriple ().getTriple ().c_str ());
 
     if (error.Success())
-        SetUnixSignals(std::make_shared<GDBRemoteSignals>(GetTarget().GetPlatform()->GetUnixSignals()));
+    {
+        PlatformSP platform_sp = GetTarget().GetPlatform();
+        if (platform_sp && platform_sp->IsConnected())
+            SetUnixSignals(platform_sp->GetUnixSignals());
+        else
+            SetUnixSignals(UnixSignals::Create(GetTarget().GetArchitecture()));
+    }
 
     return error;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11455.30559.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150724/f001324d/attachment.bin>


More information about the lldb-commits mailing list