Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-17 Thread Philippe Lavoie via lldb-dev
Subject: Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs Yep, that'll do it! Are you up and running now? > On Sep 17, 2015, at 11:05 AM, Philippe Lavoie > wrote: > > > Ah! The issue was in my custom Platform's Attach. It is based on PlatformGDB, > but it seems I bu

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-17 Thread Greg Clayton via lldb-dev
rivateState (stopped) >> 1442509021.62800 Process::SetPrivateState (stopped) stop_id = 1 >> >> ____________ >> From: Greg Clayton [gclay...@apple.com] >> Sent: Thursday, September 17, 2015 12:55 PM >> To: Philippe Lavoie >>

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-17 Thread Philippe Lavoie via lldb-dev
pple.com] Sent: Thursday, September 17, 2015 1:12 PM To: Philippe Lavoie Cc: Jim Ingham; lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs This sounds like you don't have a private state thread running. The private state thread watches for private state chang

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-17 Thread Greg Clayton via lldb-dev
le.com] > Sent: Thursday, September 17, 2015 12:55 PM > To: Philippe Lavoie > Cc: Jim Ingham; lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs > > Here is the output of attaching to a process with ProcessGDBRemote: > > (lldb) log en

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-17 Thread Philippe Lavoie via lldb-dev
) stop_id = 1 From: Greg Clayton [gclay...@apple.com] Sent: Thursday, September 17, 2015 12:55 PM To: Philippe Lavoie Cc: Jim Ingham; lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs Here is the output of attaching to a

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-17 Thread Greg Clayton via lldb-dev
gt; > From: jing...@apple.com [jing...@apple.com] > Sent: Wednesday, September 16, 2015 3:34 PM > To: Philippe Lavoie > Cc: lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs > > Did you try waiting for an ev

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-16 Thread Philippe Lavoie via lldb-dev
: [lldb-dev] SBTarget::AttachToProcessWithID hangs Did you try waiting for an event on the listener you've passed to AttachToProcess? The last event after everything is done should be the notification to the public listener (i.e. your test_listener) that the process you attached to has st

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-16 Thread Philippe Lavoie via lldb-dev
) hijack = -Philippe From: Greg Clayton [gclay...@apple.com] Sent: Wednesday, September 16, 2015 3:36 PM To: Philippe Lavoie Cc: lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs A few questions: Which process plug-in does

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-16 Thread Greg Clayton via lldb-dev
A few questions: Which process plug-in does your debugging target use? Is it a GDB Remote based debug session? If so is it using lldb-server? a custom GDB server? In general, we expect to receive a eStateStopped process event if the attach is successful and this is what we are waiting f

Re: [lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-16 Thread Jim Ingham via lldb-dev
Did you try waiting for an event on the listener you've passed to AttachToProcess? The last event after everything is done should be the notification to the public listener (i.e. your test_listener) that the process you attached to has stopped, and nobody is fetching that. Jim > On Sep 16, 20

[lldb-dev] SBTarget::AttachToProcessWithID hangs

2015-09-16 Thread Philippe Lavoie via lldb-dev
I am trying to attach to a stopped process on our dsp target using the SBTarget interface but the call hangs. What I understand is that it is waiting for events on the "lldb.process" broadcaster using the "lldb.Target.Attach.attach.hijack" listener. Enabling the logs, I see that the process is