> On Aug 18, 2016, at 2:37 AM, via lldb-dev <lldb-dev@lists.llvm.org> wrote: > > Hi All, > > I am trying to remote debug. My code is on 10.11 and my test machine is > 10.12, Sierra. I am using Xcode 5 on both machines. I am following below > steps for remote debugging: > Test machine > ------------- > cd > /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources > > ./debugserver 192.168.116.130:12345 --attach=408 > > Code build machine > ————————————— > lldb > process connect connect://192.168.116.151:12345 > b main.c:8 > > > This works fine if both build and test machines are 10.11 but fails with > below error if test machine is 10.12 and build machine is 10.11: > > > process connect connect://192.168.116.187:12345 > Assertion failed: (!"Unhandled architecture in > PlatformDarwin::GetSoftwareBreakpointTrapOpcode()"), function > GetSoftwareBreakpointTrapOpcode, file > /SourceCache/lldb/lldb-300.2.53/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp, > line 437. > > > Any suggestions to fix this?
Try the following: 1 - mount the root file system of your remote machine on your local machine using AFP (and lets pretend it end up at "/Volumes/RemoteMachine") 2 - select the remote-macosx platform and specify the sysroot: (lldb) platform select remote-macosx --sysroot /Volumes/RemoteMachine (lldb) process connect connect://192.168.116.187:12345 Let us know how that goes. > > > -- > Have a nice day! > Regards, > Dipti > _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev