I wanted a log with Eclipse talking to lldb-mi to see if it was doing anything odd. It's not:
-exec-continue --thread-group i1 < 5> send packet: $c#63 -list-thread-groups i1 We have lldb-mi launch hexagon-sim automatically; it launches the same way debugserver does, with reverse-connect. I'd expect an -exec-run to do this automatically for you. No need to specify parameters to debugserver. Here is some of a log of Eclipse talking to lldb-mi talking to a Hexagon target. It looks very similar, except for -exec-run instead of -target-select remote and -exec-continue: TX:21-break-insert -t -f main RX:=breakpoint-modified,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002eec",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="100",pending=["downscaleBy2.c:100"],times="0",original-location="downscaleBy2.c:100"} TX:22-list-thread-groups RX:(gdb) RX:21^done,bkpt={number="4",type="breakpoint",disp="del",enabled="y",addr="0x000000001e002d5c",func="main",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="72",pending=["main"],times="0",original-location="main"} RX:(gdb) TX:23-exec-run RX:=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="del",enabled="y",addr="0x000000001e002d5c",func="main",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="72",pending=["main"],times="0",original-location="main"} RX:(gdb) RX:22^done,groups=[{id="i1",type="process",executable="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\hexagon_Debug_toolv80_v60/downscaleBy2_q"}] RX:(gdb) RX:23^running RX:=thread-group-started,id="i1",pid="1" RX:(gdb) RX:=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002f38",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="121",pending=["downscaleBy2.c:110"],times="0",original-location="downscaleBy2.c:110"} RX:(gdb) RX:=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002df0",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="96",pending=["downscaleBy2.c:96"],times="0",original-location="downscaleBy2.c:96"} RX:(gdb) RX:=breakpoint-modified,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002eec",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="100",pending=["downscaleBy2.c:100"],times="0",original-location="downscaleBy2.c:100"} RX:(gdb) RX:=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="del",enabled="y",addr="0x000000001e002d5c",func="main",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="72",pending=["main"],times="1",original-location="main"} TX:24-list-thread-groups --available RX:(gdb) RX:=thread-created,id="1",group-id="i1" RX:=thread-created,id="2",group-id="i1" RX:=thread-created,id="3",group-id="i1" RX:=thread-created,id="4",group-id="i1" RX:=thread-selected,id="1" RX:(gdb) RX:23^running RX:=thread-group-started,id="i1",pid="1" RX:(gdb) RX:=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002f38",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="121",pending=["downscaleBy2.c:110"],times="0",original-location="downscaleBy2.c:110"} RX:(gdb) RX:=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002df0",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="96",pending=["downscaleBy2.c:96"],times="0",original-location="downscaleBy2.c:96"} RX:(gdb) RX:=breakpoint-modified,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x000000001e002eec",func="test_main_start",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="100",pending=["downscaleBy2.c:100"],times="0",original-location="downscaleBy2.c:100"} RX:(gdb) RX:=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="del",enabled="y",addr="0x000000001e002d5c",func="main",file="downscaleBy2.c",fullname="C:\installSDK\Hexagon_SDK\3.0\examples\common\downscaleBy2\src/downscaleBy2.c",line="72",pending=["main"],times="1",original-location="main"} TX:24-list-thread-groups --available RX:(gdb) RX:=thread-created,id="1",group-id="i1" RX:=thread-created,id="2",group-id="i1" RX:=thread-created,id="3",group-id="i1" RX:=thread-created,id="4",group-id="i1" RX:=thread-selected,id="1" RX:(gdb) -- Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -----Original Message----- From: Greg Clayton [mailto:gclay...@apple.com] Sent: Monday, July 11, 2016 1:07 PM To: dipt...@gmail.com Cc: Ted Woodward <ted.woodw...@codeaurora.org>; LLDB <lldb-dev@lists.llvm.org> Subject: Re: [lldb-dev] LLDB-MI from Eclipse hangs > On Jul 11, 2016, at 1:31 AM, dipt...@gmail.com wrote: > > Thanks Ted. > Attached is the GDB log after enabling log while executing same commands > manually from command prompt. > Is this the GDB log while still running lldb-mi? I would like to see a log of any program that actually runs using "gdb" as the MI program. This will allow us to see a working example. We know it isn't working with LLDB and I was thinking we can get hints of what is expected with an actual GDB doing the MI. > Yes, I am running debug server manually. I am facing issues with "GDB (DSF) > Automatic Remote Debugging Launcher" as eclipse is not passing correct > parameter to debug server. Below is the Eclipse console output with automatic > mode: > > echo $PWD'>' > /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versi > ons/A/Resources/debugserver :192.168.116.140:1234 > /Users/admin/Documents/workspace/Hello\ World\ C++\ > Project/Debug/Hello\ World\ C++\ Project;exit What is the extra ":" before the address? debugserver doesn't support this syntax and that is why it is causing issues. > dshiralkar-mactest:~ admin$ echo $PWD'>' > /Users/admin> > dshiralkar-mactest:~ admin$ > /Applications/Xcode.app/Contents/SharedFrameworks/LL > DB.framework/Versions/A/Resources/debugserver :192.168.116.140:1234 > /Users/admi n/Documents/workspace/Hello\ World\ C++\ Project/Debug/Hello\ > World\ C++\ Projec t;exit debugserver-@(#)PROGRAM:debugserver > PROJECT:debugserver-350.0.21.9 for x86_64. > Usage: > debugserver host:port [program-name program-arg1 program-arg2 ...] > debugserver /path/file [program-name program-arg1 program-arg2 ...] > debugserver host:port --attach=<pid> > debugserver /path/file --attach=<pid> > debugserver host:port --attach=<process_name> > debugserver /path/file --attach=<process_name> logout > > Please let me know your thoughts. > > > -- > Have a nice day! > Regards, > Dipti > > > > On Fri, Jul 8, 2016 at 9:55 PM, Ted Woodward <ted.woodw...@codeaurora.org> > wrote: > A few thoughts: > > 1) I think lldb-mi now takes lldb commands, so you could do the log in > your manual copy/paste. The command you want is: > > log enable gdb-remote packets > > Do it after the stop, before the –break-insert. You’ll get a bunch of data > after the –break-insert, then do the –exec-continue and –list-thread-groups, > and send the data that comes out after those. > > > > 2) I see from the log that you’re doing a –target-select remote. Are you > running debugserver manually? What happens if you don’t run debugserver, and > have Eclipse do –exec-run instead of –target-select remote? > > The original Codeplay implementation of lldb-mi talked to the Hexagon > Simulator, but didn’t have a way to launch it, so they only used > –target-select remote, and not –exec-run. Debugserver can be launched > automatically, so –exec-run should work. > > > > 3) This is an answer to Greg’s question about –exec-continue and > –list-thread-groups. I was going to ask the same thing, but I looked over > some old logs I had. Eclipse called –list-thread-groups while the target was > running, and it worked fine. This was with a 2 year old lldb-mi, but I’d > expect a modern lldb-mi to work as well. The spec at > https://sourceware.org/gdb/onlinedocs/gdb/Thread-groups.html talks about what > this command does. It gives a list of process groups that the debugger is > debugging, so it doesn’t matter if a certain process is running or not. > > > > > > -- > > Qualcomm Innovation Center, Inc. > > The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > a Linux Foundation Collaborative Project > > > > From: dipt...@gmail.com [mailto:dipt...@gmail.com] > Sent: Friday, July 08, 2016 6:23 AM > To: Ted Woodward <ted.woodw...@codeaurora.org> > Cc: Greg Clayton <gclay...@apple.com>; LLDB <lldb-dev@lists.llvm.org> > > > Subject: Re: [lldb-dev] LLDB-MI from Eclipse hangs > > > > Thanks Ted for your reply. > > I tried the same command that eclipse uses manually from command prompt. It > hangs after same last command "-exec-continue --thread-group i1". Attached is > the lldb-mi sample at that time. > > > > While debugging from Eclipse I am going to Run--> Debug Configurations--> > C/C++ Remote Applications--> <My Configuration> and then click on Debug > button. And then all the commands are executed by Eclipse automatically. I do > not see two different steps as attach and continue. So I am not sure how to > pass command "log enable gdb-remote packets". May be I am missing something. > Can you please help me here, so that I can get the required log as suggested > by you? Thanks. > > > > > > -- > > Have a nice day! > Regards, > Dipti > > On Fri, Jul 8, 2016 at 4:01 AM, Ted Woodward <ted.woodw...@codeaurora.org> > wrote: > > I don’t see anything in the log that looks like a problem. I’ve got 2 > thoughts: > > > > 1) Have you tried manual debugging with the same sequence that eclipse > uses? You can copy/paste lines from the log, just remove some extraneous > logging info, so > > 313,464 14-file-exec-and-symbols --thread-group i1 > "/Users/admin/Documents/workspace/Hello World C++\ > Project/Debug/Hello World C++ Project" > Becomes > > -file-exec-and-symbols --thread-group i1 > "/Users/admin/Documents/workspace/Hello World C++ Project/Debug/Hello World > C++ Project" > > Copy/paste the exact sequence. > > > > 2) A packet log after the –list-thread-groups that hangs would be > useful. After you attach in eclipse, but before you continue, go to the GDB > console tab and type: > > log enable gdb-remote packets > > You should get a line in the log that says > > -interpreter-exec console “log enable gdb-remote packets” > > and then get a giant spew of data after the continue. Please send that data. > > > > I worked on getting lldb-mi working with Eclipse for Hexagon; there were > times when I’d have to copy/paste what Eclipse sent over to replicate > problems, and bisect those commands to find the combination that caused my > bad behavior. You may need to do that here. > > > > Ted > > > > -- > > Qualcomm Innovation Center, Inc. > > The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > a Linux Foundation Collaborative Project > > > > From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of > via lldb-dev > Sent: Thursday, July 07, 2016 10:53 AM > To: Greg Clayton <gclay...@apple.com> > Cc: lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] LLDB-MI from Eclipse hangs > > > > Thanks Greg for your reply. > > > > Attached below is the GDB trace, please let me know if it helps in any ways. > > > > It would be helpful if you can tell me on how to capture (I am really new to > lldb, sorry for bothering you): > > - sample lldb-mi to see what it is doing. > > - complete packet log of the traffic between Eclipse and lldb-mi > > > > I am trying with simple "Hello world" c++ program, so libraries should to be > a problem. Also, same remote debugging is working fine if I manually do it > using lldb-mi from command prompt. The hang is happening only when I try to > do it via eclipse. > > > > I am trying via eclipse, because I am looking for some IDE based remote > debugging solution. And Xcode 5 does not support it. Please let me know if > you have any other suggestion. > > > > > > ********************************************************************** > ********************************************************************** > > 313,309 2-environment-cd "/Users/admin/Documents/workspace/Hello World C++ > Project" > 313,314 2^done,path="/Users/admin/Documents/workspace/Hello World C++ Project" > 313,315 (gdb) > 313,321 3-gdb-set breakpoint pending on > 313,322 3^done > 313,323 (gdb) > 313,327 4-gdb-set detach-on-fork on > 313,327 4^done > 313,328 (gdb) > 313,330 5-enable-pretty-printing > 313,388 5^done,supported="0" > 313,394 (gdb) > 313,404 6-gdb-set python print-stack none > 313,404 6^done > 313,405 (gdb) > 313,407 7-gdb-set print object on > 313,408 7^error,msg="The request ''print' error. The option 'object' not > found' failed." > 313,409 (gdb) > 313,411 8-gdb-set print sevenbit-strings on > 313,413 8^error,msg="The request ''print' error. The option > 'sevenbit-strings' not found' failed." > 313,434 (gdb) > 313,436 9-gdb-set host-charset UTF-8 > 313,436 9^done > 313,437 (gdb) > 313,439 10-gdb-set target-charset UTF-8 > 313,440 10^done > 313,442 (gdb) > 313,446 11-gdb-set target-wide-charset UTF-32 > 313,447 11^done > 313,447 (gdb) > 313,449 12-gdb-set target-async off > 313,453 12^done > 313,453 (gdb) > 313,454 13-gdb-set auto-solib-add on > 313,455 13^done > 313,455 (gdb) > 313,464 14-file-exec-and-symbols --thread-group i1 > "/Users/admin/Documents/workspace/Hello World C++\ Project/Debug/Hello World > C++ Project" > 313,625 14^done > 313,626 =library-loaded,id="/Users/admin/Documents/workspace/Hello > World C++ Project/Debug/Hello Wor\ ld C++ > Project",target-name="/Users/admin/Documents/workspace/Hello World C++ > Project/Debug/Hello Wo\ rld C++ > Project",host-name="/Users/admin/Documents/workspace/Hello World C++ > Project/Debug/Hello Wor\ ld C++ > Project",symbols-loaded="0",loaded_addr="-",size="8192" > 313,626 (gdb) > 313,627 15-target-select remote 192.168.116.141:1234 > 314,260 15^connected > 314,260 =thread-group-started,id="i1",pid="1725" > 314,261 =thread-created,id="1",group-id="i1" > 314,261 =thread-selected,id="1" > 314,261 (gdb) > 314,261 > =library-loaded,id="/usr/lib/dyld",target-name="/usr/lib/dyld",host-na > me="/usr/lib/dyld",sym\ > bols-loaded="0",loaded_addr="0x00007fff65fd2000",size="229376" > 314,261 (gdb) > 314,261 > =library-loaded,id="/usr/lib/libc++.1.dylib",target-name="/usr/lib/lib > c++.1.dylib",host-name\ > ="/usr/lib/libc++.1.dylib",symbols-loaded="0",loaded_addr="0x00007fff90557000",size="344064" > 314,261 (gdb) > 314,261 > =library-loaded,id="/usr/lib/libSystem.B.dylib",target-name="/usr/lib/ > libSystem.B.dylib",hos\ > t-name="/usr/lib/libSystem.B.dylib",symbols-loaded="0",loaded_addr="0x00007fff88a4c000",size="8192" > 314,261 (gdb) > 314,261 > =library-loaded,id="/usr/lib/libc++abi.dylib",target-name="/usr/lib/li > bc++abi.dylib",host-na\ > me="/usr/lib/libc++abi.dylib",symbols-loaded="0",loaded_addr="0x00007fff8fb0f000",size="172032" > 314,261 (gdb) > 314,261 > =library-loaded,id="/usr/lib/system/libcache.dylib",target-name="/usr/ > lib/system/libcache.dy\ > lib",host-name="/usr/lib/system/libcache.dylib",symbols-loaded="0",loa > ded_addr="0x00007fff8be07000",\ > size="20480" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libcommonCrypto.dylib",target-name > ="/usr/lib/system/libc\ > ommonCrypto.dylib",host-name="/usr/lib/system/libcommonCrypto.dylib",s > ymbols-loaded="0",loaded_addr=\ > "0x00007fff8afba000",size="49152" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libcompiler_rt.dylib",target-name= > "/usr/lib/system/libco\ > mpiler_rt.dylib",host-name="/usr/lib/system/libcompiler_rt.dylib",symb > ols-loaded="0",loaded_addr="0x\ > 00007fff8c6ed000",size="32768" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libcopyfile.dylib",target-name="/u > sr/lib/system/libcopyf\ > ile.dylib",host-name="/usr/lib/system/libcopyfile.dylib",symbols-loade > d="0",loaded_addr="0x00007fff8\ > c6f5000",size="36864" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libcorecrypto.dylib",target-name=" > /usr/lib/system/libcor\ > ecrypto.dylib",host-name="/usr/lib/system/libcorecrypto.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff87435000",size="491520" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libdispatch.dylib",target-name="/u > sr/lib/system/libdispa\ > tch.dylib",host-name="/usr/lib/system/libdispatch.dylib",symbols-loade > d="0",loaded_addr="0x00007fff8\ > de70000",size="188416" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libdyld.dylib",target-name="/usr/l > ib/system/libdyld.dyli\ > b",host-name="/usr/lib/system/libdyld.dylib",symbols-loaded="0",loaded > _addr="0x00007fff8afc6000",siz\ > e="16384" > 314,262 (gdb) > 314,262 > =library-loaded,id="/usr/lib/system/libkeymgr.dylib",target-name="/usr > /lib/system/libkeymgr.\ > dylib",host-name="/usr/lib/system/libkeymgr.dylib",symbols-loaded="0", > loaded_addr="0x00007fff9033b00\ > 0",size="4096" > 314,263 (gdb) > 314,263 > =library-loaded,id="/usr/lib/system/liblaunch.dylib",target-name="/usr > /lib/system/liblaunch.\ > dylib",host-name="/usr/lib/system/liblaunch.dylib",symbols-loaded="0", > loaded_addr="0x000000010d42100\ > 0",size="4096" > 314,263 (gdb) > 314,263 > =library-loaded,id="/usr/lib/system/libmacho.dylib",target-name="/usr/ > lib/system/libmacho.dy\ > lib",host-name="/usr/lib/system/libmacho.dylib",symbols-loaded="0",loa > ded_addr="0x00007fff89ced000",\ > size="24576" > 314,263 (gdb) > 314,263 > =library-loaded,id="/usr/lib/system/libquarantine.dylib",target-name=" > /usr/lib/system/libqua\ > rantine.dylib",host-name="/usr/lib/system/libquarantine.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff922d2000",size="12288" > 314,263 (gdb) > 314,263 > =library-loaded,id="/usr/lib/system/libremovefile.dylib",target-name=" > /usr/lib/system/librem\ > ovefile.dylib",host-name="/usr/lib/system/libremovefile.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff8631a000",size="8192" > 314,263 (gdb) > 314,263 > =library-loaded,id="/usr/lib/system/libsystem_asl.dylib",target-name=" > /usr/lib/system/libsys\ > tem_asl.dylib",host-name="/usr/lib/system/libsystem_asl.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff87631000",size="98304" > 314,263 (gdb) > 314,263 > =library-loaded,id="/usr/lib/system/libsystem_blocks.dylib",target-nam > e="/usr/lib/system/lib\ > system_blocks.dylib",host-name="/usr/lib/system/libsystem_blocks.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff90d96000",size="8192" > 314,263 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_c.dylib",target-name="/u > sr/lib/system/libsyste\ > m_c.dylib",host-name="/usr/lib/system/libsystem_c.dylib",symbols-loade > d="0",loaded_addr="0x00007fff9\ > 67a5000",size="581632" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_configuration.dylib",tar > get-name="/usr/lib/sys\ > tem/libsystem_configuration.dylib",host-name="/usr/lib/system/libsyste > m_configuration.dylib",symbols\ > -loaded="0",loaded_addr="0x00007fff9678b000",size="12288" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_coreservices.dylib",targ > et-name="/usr/lib/syst\ > em/libsystem_coreservices.dylib",host-name="/usr/lib/system/libsystem_ > coreservices.dylib",symbols-lo\ > aded="0",loaded_addr="0x00007fff90b3a000",size="12288" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_coretls.dylib",target-na > me="/usr/lib/system/li\ > bsystem_coretls.dylib",host-name="/usr/lib/system/libsystem_coretls.dy > lib",symbols-loaded="0",loaded\ > _addr="0x00007fff89d05000",size="98304" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_dnssd.dylib",target-name > ="/usr/lib/system/libs\ > ystem_dnssd.dylib",host-name="/usr/lib/system/libsystem_dnssd.dylib",s > ymbols-loaded="0",loaded_addr=\ > "0x00007fff8b4e9000",size="36864" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_info.dylib",target-name= > "/usr/lib/system/libsy\ > stem_info.dylib",host-name="/usr/lib/system/libsystem_info.dylib",symb > ols-loaded="0",loaded_addr="0x\ > 00007fff89956000",size="172032" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_kernel.dylib",target-nam > e="/usr/lib/system/lib\ > system_kernel.dylib",host-name="/usr/lib/system/libsystem_kernel.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff84838000",size="126976" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_m.dylib",target-name="/u > sr/lib/system/libsyste\ > m_m.dylib",host-name="/usr/lib/system/libsystem_m.dylib",symbols-loade > d="0",loaded_addr="0x00007fff9\ > 79d8000",size="196608" > 314,264 (gdb) > 314,264 > =library-loaded,id="/usr/lib/system/libsystem_malloc.dylib",target-nam > e="/usr/lib/system/lib\ > system_malloc.dylib",host-name="/usr/lib/system/libsystem_malloc.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff9830d000",size="118784" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_network.dylib",target-na > me="/usr/lib/system/li\ > bsystem_network.dylib",host-name="/usr/lib/system/libsystem_network.dy > lib",symbols-loaded="0",loaded\ > _addr="0x00007fff8d1cd000",size="421888" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_networkextension.dylib", > target-name="/usr/lib/\ > system/libsystem_networkextension.dylib",host-name="/usr/lib/system/li > bsystem_networkextension.dylib\ > ",symbols-loaded="0",loaded_addr="0x00007fff94986000",size="36864" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_notify.dylib",target-nam > e="/usr/lib/system/lib\ > system_notify.dylib",host-name="/usr/lib/system/libsystem_notify.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff8b4df000",size="40960" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_platform.dylib",target-n > ame="/usr/lib/system/l\ > ibsystem_platform.dylib",host-name="/usr/lib/system/libsystem_platform > .dylib",symbols-loaded="0",loa\ > ded_addr="0x00007fff8c48c000",size="36864" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_pthread.dylib",target-na > me="/usr/lib/system/li\ > bsystem_pthread.dylib",host-name="/usr/lib/system/libsystem_pthread.dy > lib",symbols-loaded="0",loaded\ > _addr="0x00007fff8926a000",size="40960" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_sandbox.dylib",target-na > me="/usr/lib/system/li\ > bsystem_sandbox.dylib",host-name="/usr/lib/system/libsystem_sandbox.dy > lib",symbols-loaded="0",loaded\ > _addr="0x000000010d42a000",size="16384" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_secinit.dylib",target-na > me="/usr/lib/system/li\ > bsystem_secinit.dylib",host-name="/usr/lib/system/libsystem_secinit.dy > lib",symbols-loaded="0",loaded\ _addr="0x00007fff87649000",size="8192" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libsystem_trace.dylib",target-name > ="/usr/lib/system/libs\ > ystem_trace.dylib",host-name="/usr/lib/system/libsystem_trace.dylib",s > ymbols-loaded="0",loaded_addr=\ > "0x00007fff89cf3000",size="73728" > 314,265 (gdb) > 314,265 > =library-loaded,id="/usr/lib/system/libunc.dylib",target-name="/usr/li > b/system/libunc.dylib"\ > ,host-name="/usr/lib/system/libunc.dylib",symbols-loaded="0",loaded_ad > dr="0x00007fff8f020000",size="\ > 4096" > 314,265 (gdb) > 314,266 > =library-loaded,id="/usr/lib/system/libunwind.dylib",target-name="/usr > /lib/system/libunwind.\ > dylib",host-name="/usr/lib/system/libunwind.dylib",symbols-loaded="0", > loaded_addr="0x00007fff9800d00\ > 0",size="24576" > 314,266 (gdb) > 314,266 > =library-loaded,id="/usr/lib/system/libxpc.dylib",target-name="/usr/li > b/system/libxpc.dylib"\ > ,host-name="/usr/lib/system/libxpc.dylib",symbols-loaded="0",loaded_ad > dr="0x000000010d434000",size="\ > 172032" > 314,266 (gdb) > 314,266 > =library-loaded,id="/usr/lib/libobjc.A.dylib",target-name="/usr/lib/li > bobjc.A.dylib",host-na\ > me="/usr/lib/libobjc.A.dylib",symbols-loaded="0",loaded_addr="0x00007fff88ae5000",size="3551232" > 314,266 (gdb) > 314,266 > =library-loaded,id="/usr/lib/libauto.dylib",target-name="/usr/lib/liba > uto.dylib",host-name="\ > /usr/lib/libauto.dylib",symbols-loaded="0",loaded_addr="0x00007fff965f6000",size="290816" > 314,266 (gdb) > 314,266 > =library-loaded,id="/usr/lib/libDiagnosticMessagesClient.dylib",target > -name="/usr/lib/libDia\ > gnosticMessagesClient.dylib",host-name="/usr/lib/libDiagnosticMessages > Client.dylib",symbols-loaded="\ > 0",loaded_addr="0x00007fff92e20000",size="8192" > 314,266 (gdb) > 314,266 =library-loaded,id="/Users/admin/Documents/workspace/Hello > World C++ Project/Debug/Hello Wor\ ld C++ > Project",target-name="/Users/admin/Documents/workspace/Hello World C++ > Project/Debug/Hello Wo\ rld C++ > Project",host-name="/Users/admin/Documents/workspace/Hello World C++ > Project/Debug/Hello Wor\ ld C++ > Project",symbols-loaded="0",loaded_addr="0x000000010d417000",size="8192" > 314,266 > =library-loaded,id="/usr/lib/libc++.1.dylib",target-name="/usr/lib/lib > c++.1.dylib",host-name\ > ="/usr/lib/libc++.1.dylib",symbols-loaded="0",loaded_addr="0x00007fff90557000",size="344064" > 314,266 > =library-loaded,id="/usr/lib/libSystem.B.dylib",target-name="/usr/lib/ > libSystem.B.dylib",hos\ > t-name="/usr/lib/libSystem.B.dylib",symbols-loaded="0",loaded_addr="0x00007fff88a4c000",size="8192" > 314,266 > =library-loaded,id="/usr/lib/libc++abi.dylib",target-name="/usr/lib/li > bc++abi.dylib",host-na\ > me="/usr/lib/libc++abi.dylib",symbols-loaded="0",loaded_addr="0x00007fff8fb0f000",size="172032" > 314,267 > =library-loaded,id="/usr/lib/system/libcache.dylib",target-name="/usr/ > lib/system/libcache.dy\ > lib",host-name="/usr/lib/system/libcache.dylib",symbols-loaded="0",loa > ded_addr="0x00007fff8be07000",\ > size="20480" > 314,267 > =library-loaded,id="/usr/lib/system/libcommonCrypto.dylib",target-name > ="/usr/lib/system/libc\ > ommonCrypto.dylib",host-name="/usr/lib/system/libcommonCrypto.dylib",s > ymbols-loaded="0",loaded_addr=\ > "0x00007fff8afba000",size="49152" > 314,267 > =library-loaded,id="/usr/lib/system/libcompiler_rt.dylib",target-name= > "/usr/lib/system/libco\ > mpiler_rt.dylib",host-name="/usr/lib/system/libcompiler_rt.dylib",symb > ols-loaded="0",loaded_addr="0x\ > 00007fff8c6ed000",size="32768" > 314,267 > =library-loaded,id="/usr/lib/system/libcopyfile.dylib",target-name="/u > sr/lib/system/libcopyf\ > ile.dylib",host-name="/usr/lib/system/libcopyfile.dylib",symbols-loade > d="0",loaded_addr="0x00007fff8\ > c6f5000",size="36864" > 314,267 > =library-loaded,id="/usr/lib/system/libcorecrypto.dylib",target-name=" > /usr/lib/system/libcor\ > ecrypto.dylib",host-name="/usr/lib/system/libcorecrypto.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff87435000",size="491520" > 314,267 > =library-loaded,id="/usr/lib/system/libdispatch.dylib",target-name="/u > sr/lib/system/libdispa\ > tch.dylib",host-name="/usr/lib/system/libdispatch.dylib",symbols-loade > d="0",loaded_addr="0x00007fff8\ > de70000",size="188416" > 314,267 > =library-loaded,id="/usr/lib/system/libdyld.dylib",target-name="/usr/l > ib/system/libdyld.dyli\ > b",host-name="/usr/lib/system/libdyld.dylib",symbols-loaded="0",loaded > _addr="0x00007fff8afc6000",siz\ > e="16384" > 314,267 > =library-loaded,id="/usr/lib/system/libkeymgr.dylib",target-name="/usr > /lib/system/libkeymgr.\ > dylib",host-name="/usr/lib/system/libkeymgr.dylib",symbols-loaded="0", > loaded_addr="0x00007fff9033b00\ > 0",size="4096" > 314,267 > =library-loaded,id="/usr/lib/system/liblaunch.dylib",target-name="/usr > /lib/system/liblaunch.\ > dylib",host-name="/usr/lib/system/liblaunch.dylib",symbols-loaded="0", > loaded_addr="0x000000010d42100\ > 0",size="4096" > 314,267 > =library-loaded,id="/usr/lib/system/libmacho.dylib",target-name="/usr/ > lib/system/libmacho.dy\ > lib",host-name="/usr/lib/system/libmacho.dylib",symbols-loaded="0",loa > ded_addr="0x00007fff89ced000",\ > size="24576" > 314,268 > =library-loaded,id="/usr/lib/system/libquarantine.dylib",target-name=" > /usr/lib/system/libqua\ > rantine.dylib",host-name="/usr/lib/system/libquarantine.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff922d2000",size="12288" > 314,268 > =library-loaded,id="/usr/lib/system/libremovefile.dylib",target-name=" > /usr/lib/system/librem\ > ovefile.dylib",host-name="/usr/lib/system/libremovefile.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff8631a000",size="8192" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_asl.dylib",target-name=" > /usr/lib/system/libsys\ > tem_asl.dylib",host-name="/usr/lib/system/libsystem_asl.dylib",symbols > -loaded="0",loaded_addr="0x000\ > 07fff87631000",size="98304" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_blocks.dylib",target-nam > e="/usr/lib/system/lib\ > system_blocks.dylib",host-name="/usr/lib/system/libsystem_blocks.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff90d96000",size="8192" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_c.dylib",target-name="/u > sr/lib/system/libsyste\ > m_c.dylib",host-name="/usr/lib/system/libsystem_c.dylib",symbols-loade > d="0",loaded_addr="0x00007fff9\ > 67a5000",size="581632" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_configuration.dylib",tar > get-name="/usr/lib/sys\ > tem/libsystem_configuration.dylib",host-name="/usr/lib/system/libsyste > m_configuration.dylib",symbols\ > -loaded="0",loaded_addr="0x00007fff9678b000",size="12288" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_coreservices.dylib",targ > et-name="/usr/lib/syst\ > em/libsystem_coreservices.dylib",host-name="/usr/lib/system/libsystem_ > coreservices.dylib",symbols-lo\ > aded="0",loaded_addr="0x00007fff90b3a000",size="12288" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_coretls.dylib",target-na > me="/usr/lib/system/li\ > bsystem_coretls.dylib",host-name="/usr/lib/system/libsystem_coretls.dy > lib",symbols-loaded="0",loaded\ > _addr="0x00007fff89d05000",size="98304" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_dnssd.dylib",target-name > ="/usr/lib/system/libs\ > ystem_dnssd.dylib",host-name="/usr/lib/system/libsystem_dnssd.dylib",s > ymbols-loaded="0",loaded_addr=\ > "0x00007fff8b4e9000",size="36864" > 314,268 > =library-loaded,id="/usr/lib/system/libsystem_info.dylib",target-name= > "/usr/lib/system/libsy\ > stem_info.dylib",host-name="/usr/lib/system/libsystem_info.dylib",symb > ols-loaded="0",loaded_addr="0x\ > 00007fff89956000",size="172032" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_kernel.dylib",target-nam > e="/usr/lib/system/lib\ > system_kernel.dylib",host-name="/usr/lib/system/libsystem_kernel.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff84838000",size="126976" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_m.dylib",target-name="/u > sr/lib/system/libsyste\ > m_m.dylib",host-name="/usr/lib/system/libsystem_m.dylib",symbols-loade > d="0",loaded_addr="0x00007fff9\ > 79d8000",size="196608" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_malloc.dylib",target-nam > e="/usr/lib/system/lib\ > system_malloc.dylib",host-name="/usr/lib/system/libsystem_malloc.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff9830d000",size="118784" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_network.dylib",target-na > me="/usr/lib/system/li\ > bsystem_network.dylib",host-name="/usr/lib/system/libsystem_network.dy > lib",symbols-loaded="0",loaded\ > _addr="0x00007fff8d1cd000",size="421888" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_networkextension.dylib", > target-name="/usr/lib/\ > system/libsystem_networkextension.dylib",host-name="/usr/lib/system/li > bsystem_networkextension.dylib\ > ",symbols-loaded="0",loaded_addr="0x00007fff94986000",size="36864" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_notify.dylib",target-nam > e="/usr/lib/system/lib\ > system_notify.dylib",host-name="/usr/lib/system/libsystem_notify.dylib > ",symbols-loaded="0",loaded_ad\ > dr="0x00007fff8b4df000",size="40960" > 314,269 > =library-loaded,id="/usr/lib/system/libsystem_platform.dylib",target-n > ame="/usr/lib/system/l\ > ibsystem_platform.dylib",host-name="/usr/lib/system/libsystem_platform > .dylib",symbols-loaded="0",loa\ > ded_addr="0x00007fff8c48c000",size="36864" > 314,272 > =library-loaded,id="/usr/lib/system/libsystem_pthread.dylib",target-na > me="/usr/lib/system/li\ > bsystem_pthread.dylib",host-name="/usr/lib/system/libsystem_pthread.dy > lib",symbols-loaded="0",loaded\ > _addr="0x00007fff8926a000",size="40960" > 314,273 > =library-loaded,id="/usr/lib/system/libsystem_sandbox.dylib",target-na > me="/usr/lib/system/li\ > bsystem_sandbox.dylib",host-name="/usr/lib/system/libsystem_sandbox.dy > lib",symbols-loaded="0",loaded\ > _addr="0x000000010d42a000",size="16384" > 314,273 > =library-loaded,id="/usr/lib/system/libsystem_secinit.dylib",target-na > me="/usr/lib/system/li\ > 314,274 16-list-thread-groups --available > bsystem_secinit.dylib",host-name="/usr/lib/system/libsystem_secinit.dy > lib",symbols-loaded="0",loaded\ _addr="0x00007fff87649000",size="8192" > 314,275 > =library-loaded,id="/usr/lib/system/libsystem_trace.dylib",target-name > ="/usr/lib/system/libs\ > ystem_trace.dylib",host-name="/usr/lib/system/libsystem_trace.dylib",s > ymbols-loaded="0",loaded_addr=\ > "0x00007fff89cf3000",size="73728" > 314,275 > =library-loaded,id="/usr/lib/system/libunc.dylib",target-name="/usr/li > b/system/libunc.dylib"\ > ,host-name="/usr/lib/system/libunc.dylib",symbols-loaded="0",loaded_ad > dr="0x00007fff8f020000",size="\ > 4096" > 314,276 > =library-loaded,id="/usr/lib/system/libunwind.dylib",target-name="/usr > /lib/system/libunwind.\ > dylib",host-name="/usr/lib/system/libunwind.dylib",symbols-loaded="0", > loaded_addr="0x00007fff9800d00\ > 0",size="24576" > 314,276 > =library-loaded,id="/usr/lib/system/libxpc.dylib",target-name="/usr/li > b/system/libxpc.dylib"\ > ,host-name="/usr/lib/system/libxpc.dylib",symbols-loaded="0",loaded_ad > dr="0x000000010d434000",size="\ > 172032" > 314,276 > =library-loaded,id="/usr/lib/libobjc.A.dylib",target-name="/usr/lib/li > bobjc.A.dylib",host-na\ > me="/usr/lib/libobjc.A.dylib",symbols-loaded="0",loaded_addr="0x00007fff88ae5000",size="3551232" > 314,279 > =library-loaded,id="/usr/lib/libauto.dylib",target-name="/usr/lib/liba > uto.dylib",host-name="\ > /usr/lib/libauto.dylib",symbols-loaded="0",loaded_addr="0x00007fff965f6000",size="290816" > 314,279 > =library-loaded,id="/usr/lib/libDiagnosticMessagesClient.dylib",target > -name="/usr/lib/libDia\ > gnosticMessagesClient.dylib",host-name="/usr/lib/libDiagnosticMessages > Client.dylib",symbols-loaded="\ > 0",loaded_addr="0x00007fff92e20000",size="8192" > 314,279 (gdb) > 314,279 > =library-loaded,id="/usr/lib/dyld",target-name="/usr/lib/dyld",host-na > me="/usr/lib/dyld",sym\ > bols-loaded="0",loaded_addr="0x00007fff65fd2000",size="229376" > 314,279 (gdb) > 314,279 (gdb) > 314,288 > *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning > ="Stop",frame={level="\ > 0",addr="0x00007fff8484f10a",func="__semwait_signal",file="??",fullnam > e="??",line="-1"},thread-id="1\ > ",stopped-threads="all" > 314,288 (gdb) > 314,291 (gdb) > 314,291 > *stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning > ="Stop",frame={level="\ > 0",addr="0x00007fff8484f10a",func="__semwait_signal",file="??",fullnam > e="??",line="-1"},thread-id="1\ > ",stopped-threads="all" > 314,291 (gdb) > 314,291 > 16^done,groups=[{id="i1",type="process",pid="1725",num_children="<not > implemented>",cores="<\ not implemented>"}] > 314,294 (gdb) > 314,294 17-break-insert --thread-group i1 -t -f main > 314,365 > 17^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr > ="0x000000010d417f36",\ > func="main",file="main.cpp",fullname="/Users/admin/Documents/workspace > /Hello World C++ Project/Debug\ > /../main.cpp",line="18",pending=["main"],thread-groups=["i1"],times="0 > ",original-location="main"} > 314,370 > =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",ena > bled="y",addr="0x00000\ > 0010d417f36",func="main",file="main.cpp",fullname="/Users/admin/Docume > nts/workspace/Hello World C++ \ > Project/Debug/../main.cpp",line="18",pending=["main"],times="0",origin > al-location="main"} > 314,370 (gdb) > 314,370 > =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",ena > bled="y",addr="0x00000\ > 0010d417f36",func="main",file="main.cpp",fullname="/Users/admin/Docume > nts/workspace/Hello World C++ \ > Project/Debug/../main.cpp",line="18",pending=["main"],times="0",origin > al-location="main"} > 314,370 (gdb) > 314,370 (gdb) > 314,372 18-exec-continue --thread-group i1 > 319,380 19-list-thread-groups > > > ********************************************************************** > ********************************************************************** > > -- > > Have a nice day! > Regards, > Dipti > > > > > > On Tue, Jul 5, 2016 at 11:16 PM, Greg Clayton <gclay...@apple.com> wrote: > > You should sample lldb-mi to see what it is doing. Also if you can get a more > complete packet log of the traffic between Eclipse and lldb-mi we might be > able to see what is going on. Another thing to note: if you are remote > debugging to a Mac from another machine and don't have any files cached (all > shared libraries from the remote machine), they will be read from memory when > the DynamicLoaderMachOSX figures out which shared libraries the process has. > This might be slow and take quite a while and it might delay your debugging > as you download a few hundred shared libraries for the first time. So you > might see long delays as you debug. You might try and wait for a few minutes > to see if the process stops correctly after reading everything from memory. > > Greg Clayton > > > > On Jul 1, 2016, at 1:13 AM, via lldb-dev <lldb-dev@lists.llvm.org> wrote: > > > > Hi All, > > > > I am trying to simple "Hello World" program remotely on a MAC OS using > > eclipse and lldb-mi. I followed the instructions available here: > > "https://www.codeplay.com/portal/lldb-mi-driver---part-2-setting-up-the-driver". > > I am facing below issue. Any suggestions would be of great help. > > > > It is simple helloWorld C++ program. he program is running on machine A and > > I am debugging it from machine B. When I remote debug from command prompt > > using lldb-mi, I am able to debug it properly. But when I try to do it via > > Eclipse from machine B: > > > > - lldb-mi is tarting > > > > - netstat on machine A shows that “debugserver" has ESTABLISHED connection > > with machine B. > > > > - But on Eclipse console it hangs after below command: > > > > 461,432 (gdb) > > > > 461,432 22^done,threads=[{id="1",target-id="Thread > > 1",state="stopped"}] > > > > 461,432 (gdb) > > > > 461,434 24-stack-info-depth --thread 1 11 > > > > If you have any suggestions please let me know. Thanks. > > > > > > > > -- > > 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 > > > > > > > > > > > > > > > > > <GDB_log.rtf> _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev