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 
<mailto: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 
<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 <mailto:gclay...@apple.com> >
Cc: lldb-dev@lists.llvm.org <mailto: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 
<http://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-name="/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/libc++.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/libc++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",loaded_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",symbols-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",symbols-loaded="0",loaded_addr="0x\

00007fff8c6ed000",size="32768"

314,262 (gdb)

314,262 
=library-loaded,id="/usr/lib/system/libcopyfile.dylib",target-name="/usr/lib/system/libcopyf\

ile.dylib",host-name="/usr/lib/system/libcopyfile.dylib",symbols-loaded="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="/usr/lib/system/libdispa\

tch.dylib",host-name="/usr/lib/system/libdispatch.dylib",symbols-loaded="0",loaded_addr="0x00007fff8\

de70000",size="188416"

314,262 (gdb)

314,262 
=library-loaded,id="/usr/lib/system/libdyld.dylib",target-name="/usr/lib/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",loaded_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-name="/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="/usr/lib/system/libsyste\

m_c.dylib",host-name="/usr/lib/system/libsystem_c.dylib",symbols-loaded="0",loaded_addr="0x00007fff9\

67a5000",size="581632"

314,264 (gdb)

314,264 
=library-loaded,id="/usr/lib/system/libsystem_configuration.dylib",target-name="/usr/lib/sys\

tem/libsystem_configuration.dylib",host-name="/usr/lib/system/libsystem_configuration.dylib",symbols\

-loaded="0",loaded_addr="0x00007fff9678b000",size="12288"

314,264 (gdb)

314,264 
=library-loaded,id="/usr/lib/system/libsystem_coreservices.dylib",target-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-name="/usr/lib/system/li\

bsystem_coretls.dylib",host-name="/usr/lib/system/libsystem_coretls.dylib",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",symbols-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",symbols-loaded="0",loaded_addr="0x\

00007fff89956000",size="172032"

314,264 (gdb)

314,264 
=library-loaded,id="/usr/lib/system/libsystem_kernel.dylib",target-name="/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="/usr/lib/system/libsyste\

m_m.dylib",host-name="/usr/lib/system/libsystem_m.dylib",symbols-loaded="0",loaded_addr="0x00007fff9\

79d8000",size="196608"

314,264 (gdb)

314,264 
=library-loaded,id="/usr/lib/system/libsystem_malloc.dylib",target-name="/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-name="/usr/lib/system/li\

bsystem_network.dylib",host-name="/usr/lib/system/libsystem_network.dylib",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/libsystem_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-name="/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-name="/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-name="/usr/lib/system/li\

bsystem_pthread.dylib",host-name="/usr/lib/system/libsystem_pthread.dylib",symbols-loaded="0",loaded\

_addr="0x00007fff8926a000",size="40960"

314,265 (gdb)

314,265 
=library-loaded,id="/usr/lib/system/libsystem_sandbox.dylib",target-name="/usr/lib/system/li\

bsystem_sandbox.dylib",host-name="/usr/lib/system/libsystem_sandbox.dylib",symbols-loaded="0",loaded\

_addr="0x000000010d42a000",size="16384"

314,265 (gdb)

314,265 
=library-loaded,id="/usr/lib/system/libsystem_secinit.dylib",target-name="/usr/lib/system/li\

bsystem_secinit.dylib",host-name="/usr/lib/system/libsystem_secinit.dylib",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",symbols-loaded="0",loaded_addr=\

"0x00007fff89cf3000",size="73728"

314,265 (gdb)

314,265 
=library-loaded,id="/usr/lib/system/libunc.dylib",target-name="/usr/lib/system/libunc.dylib"\

,host-name="/usr/lib/system/libunc.dylib",symbols-loaded="0",loaded_addr="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/lib/system/libxpc.dylib"\

,host-name="/usr/lib/system/libxpc.dylib",symbols-loaded="0",loaded_addr="0x000000010d434000",size="\

172032"

314,266 (gdb)

314,266 
=library-loaded,id="/usr/lib/libobjc.A.dylib",target-name="/usr/lib/libobjc.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/libauto.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/libDiagnosticMessagesClient.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/libc++.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/libc++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",loaded_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",symbols-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",symbols-loaded="0",loaded_addr="0x\

00007fff8c6ed000",size="32768"

314,267 
=library-loaded,id="/usr/lib/system/libcopyfile.dylib",target-name="/usr/lib/system/libcopyf\

ile.dylib",host-name="/usr/lib/system/libcopyfile.dylib",symbols-loaded="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="/usr/lib/system/libdispa\

tch.dylib",host-name="/usr/lib/system/libdispatch.dylib",symbols-loaded="0",loaded_addr="0x00007fff8\

de70000",size="188416"

314,267 
=library-loaded,id="/usr/lib/system/libdyld.dylib",target-name="/usr/lib/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",loaded_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-name="/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="/usr/lib/system/libsyste\

m_c.dylib",host-name="/usr/lib/system/libsystem_c.dylib",symbols-loaded="0",loaded_addr="0x00007fff9\

67a5000",size="581632"

314,268 
=library-loaded,id="/usr/lib/system/libsystem_configuration.dylib",target-name="/usr/lib/sys\

tem/libsystem_configuration.dylib",host-name="/usr/lib/system/libsystem_configuration.dylib",symbols\

-loaded="0",loaded_addr="0x00007fff9678b000",size="12288"

314,268 
=library-loaded,id="/usr/lib/system/libsystem_coreservices.dylib",target-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-name="/usr/lib/system/li\

bsystem_coretls.dylib",host-name="/usr/lib/system/libsystem_coretls.dylib",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",symbols-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",symbols-loaded="0",loaded_addr="0x\

00007fff89956000",size="172032"

314,269 
=library-loaded,id="/usr/lib/system/libsystem_kernel.dylib",target-name="/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="/usr/lib/system/libsyste\

m_m.dylib",host-name="/usr/lib/system/libsystem_m.dylib",symbols-loaded="0",loaded_addr="0x00007fff9\

79d8000",size="196608"

314,269 
=library-loaded,id="/usr/lib/system/libsystem_malloc.dylib",target-name="/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-name="/usr/lib/system/li\

bsystem_network.dylib",host-name="/usr/lib/system/libsystem_network.dylib",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/libsystem_networkextension.dylib\

",symbols-loaded="0",loaded_addr="0x00007fff94986000",size="36864"

314,269 
=library-loaded,id="/usr/lib/system/libsystem_notify.dylib",target-name="/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-name="/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-name="/usr/lib/system/li\

bsystem_pthread.dylib",host-name="/usr/lib/system/libsystem_pthread.dylib",symbols-loaded="0",loaded\

_addr="0x00007fff8926a000",size="40960"

314,273 
=library-loaded,id="/usr/lib/system/libsystem_sandbox.dylib",target-name="/usr/lib/system/li\

bsystem_sandbox.dylib",host-name="/usr/lib/system/libsystem_sandbox.dylib",symbols-loaded="0",loaded\

_addr="0x000000010d42a000",size="16384"

314,273 
=library-loaded,id="/usr/lib/system/libsystem_secinit.dylib",target-name="/usr/lib/system/li\

314,274 16-list-thread-groups --available

bsystem_secinit.dylib",host-name="/usr/lib/system/libsystem_secinit.dylib",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",symbols-loaded="0",loaded_addr=\

"0x00007fff89cf3000",size="73728"

314,275 
=library-loaded,id="/usr/lib/system/libunc.dylib",target-name="/usr/lib/system/libunc.dylib"\

,host-name="/usr/lib/system/libunc.dylib",symbols-loaded="0",loaded_addr="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/lib/system/libxpc.dylib"\

,host-name="/usr/lib/system/libxpc.dylib",symbols-loaded="0",loaded_addr="0x000000010d434000",size="\

172032"

314,276 
=library-loaded,id="/usr/lib/libobjc.A.dylib",target-name="/usr/lib/libobjc.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/libauto.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/libDiagnosticMessagesClient.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-name="/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="??",fullname="??",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="??",fullname="??",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",enabled="y",addr="0x00000\

0010d417f36",func="main",file="main.cpp",fullname="/Users/admin/Documents/workspace/Hello
 World C++ \

Project/Debug/../main.cpp",line="18",pending=["main"],times="0",original-location="main"}

314,370 (gdb)

314,370 
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x00000\

0010d417f36",func="main",file="main.cpp",fullname="/Users/admin/Documents/workspace/Hello
 World C++ \

Project/Debug/../main.cpp",line="18",pending=["main"],times="0",original-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 
<mailto: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 
> <mailto: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 <mailto: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

Reply via email to