Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Todd Fiala via lldb-dev
; Sent: Tuesday, November 03, 2015 5:41 PM > To: Greg Clayton <gclay...@apple.com> > Cc: Mark Chandler <mchand...@blizzard.com>; lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs > lldb-server > > I'm following this discussion,

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Todd Fiala via lldb-dev
5:41 PM >> To: Greg Clayton <gclay...@apple.com> >> Cc: Mark Chandler <mchand...@blizzard.com>; lldb-dev@lists.llvm.org >> Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs >> lldb-server >> >> I'm following this discussion,

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Greg Clayton via lldb-dev
> On Nov 4, 2015, at 9:47 AM, Todd Fiala wrote: > > Although doing any kind of waitpid() in the case of a core file doesn't make > sense. The process is still around. The process is being handed the core file via STDIN, but the process is still around and this tool is

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Greg Clayton via lldb-dev
b...@google.com>; > lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs > lldb-server > > >> On Nov 4, 2015, at 9:47 AM, Todd Fiala <todd.fi...@gmail.com> wrote: >> >> Although doing any kind of waitpid() in the cas

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Mark Chandler via lldb-dev
- From: Greg Clayton [mailto:gclay...@apple.com] Sent: Wednesday, November 04, 2015 10:01 AM To: Todd Fiala <todd.fi...@gmail.com> Cc: Mark Chandler <mchand...@blizzard.com>; Pavel Labath <lab...@google.com>; lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] Attaching to a stopp

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Jim Ingham via lldb-dev
>; Pavel Labath <lab...@google.com>; > lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs > lldb-server > > So the entire core file is in memory somehow and when it is read from STDIN > will be then be freed? Seems like a re

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-04 Thread Mark Chandler via lldb-dev
rd.com> > Cc: Todd Fiala <todd.fi...@gmail.com>; Pavel Labath <lab...@google.com>; > lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs > lldb-server > > So the entire core file is in memory somehow and when it is rea

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-03 Thread Mark Chandler via lldb-dev
<mchand...@blizzard.com> Cc: lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server One different approach is to have your tool write all STDIN to a file (the core file comes into the tool as STDIN bytes) and then hand LLDB the core file and

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-03 Thread Mark Chandler via lldb-dev
...@apple.com] Sent: Tuesday, November 03, 2015 4:39 PM To: Mark Chandler <mchand...@blizzard.com> Cc: lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server Makes sense about not writing the core file to disk. Is there a way you can detect this

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-03 Thread Pavel Labath via lldb-dev
gt; >> -Original Message- >> From: Greg Clayton [mailto:gclay...@apple.com] >> Sent: Tuesday, November 03, 2015 4:39 PM >> To: Mark Chandler <mchand...@blizzard.com> >> Cc: lldb-dev@lists.llvm.org >> Subject: Re: [lldb-dev] Attaching to a stopped

Re: [lldb-dev] Attaching to a stopped (cored) process hangs lldb-server

2015-11-03 Thread Greg Clayton via lldb-dev
:gclay...@apple.com] > Sent: Tuesday, November 03, 2015 4:34 PM > To: Mark Chandler <mchand...@blizzard.com> > Cc: lldb-dev@lists.llvm.org > Subject: Re: [lldb-dev] Attaching to a stopped (cored) process hangs > lldb-server > > One different approach is to have you