Re: [lldb-dev] LLDB Process Attach Failed When Waiting

2018-06-05 Thread Pavel Labath via lldb-dev
On Tue, 5 Jun 2018 at 01:18, Ryan Lovelett via lldb-dev wrote: > > So I've found a capability on Linux to be notified about new processes. I > have an example of listening for these new processes running on my machine > now [1] and I can see when my desired user process spawns. Though > documen

Re: [lldb-dev] LLVM-C

2018-06-05 Thread Tim Northover via lldb-dev
Hi, On 5 June 2018 at 03:13, Giannis Zamanis via lldb-dev wrote: > I have tried using zero-sized type array as > the typical parameter in the function definition, but when i call the > function with a normal-sized array as argument it throws error due to > mismatch in types. I can't find a workar

[lldb-dev] error printed to stderr: "Could not find implementation lookup function...."

2018-06-05 Thread Greg Clayton via lldb-dev
This error gets printed for all Darwin programs that are not objective C and is quite annoying in AppleObjCTrampolineHandler.cpp: if (m_impl_fn_addr == LLDB_INVALID_ADDRESS) { // If we can't even find the ordinary get method implementation function, // then we aren't going to be able

Re: [lldb-dev] error printed to stderr: "Could not find implementation lookup function...."

2018-06-05 Thread Jim Ingham via lldb-dev
Greg, Something is going wrong here before you get to this point. You can't get to the code in question (creating the AppleObjCTrampolineHandler) if you don't have an ObjCLanguageRuntime of some sort. The only way the trampoline gets made is in ReadObjCLibrary, which is a pure virtual method

[lldb-dev] MacOS minidump debugging

2018-06-05 Thread Rustam Hashimov via lldb-dev
Hi, lldb newbie here. Has anyone debugged minidump with lldb in MacOS. Any documentation or pointers would be appreciated! Thanks, Rustam ___ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Re: [lldb-dev] MacOS minidump debugging

2018-06-05 Thread Zachary Turner via lldb-dev
I assume you're referring to a windows minidump as opposed to a Mac core file? On Tue, Jun 5, 2018 at 4:19 PM Rustam Hashimov via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Hi, > lldb newbie here. > Has anyone debugged minidump with lldb in MacOS. Any documentation or > pointers would be apprec

Re: [lldb-dev] LLDB Process Attach Failed When Waiting

2018-06-05 Thread Ryan Lovelett via lldb-dev
I think I might be a little lost. I built a lldb in debug mode and I am running lldb in an lldb debugger (very meta). Earlier in the thread you said "we need a better error message when vAttachWait returns unsupported" I have found where the error message, e.g., "error: attach failed: lost connecti

Re: [lldb-dev] LLDB Process Attach Failed When Waiting

2018-06-05 Thread Jim Ingham via lldb-dev
Except for Windows and FreeBSD, lldb uses a server program to do the actual debugging - either debugserver on Darwin or lldb-server elsewhere. The interface to these servers (and to the in-process debugging in Windows & FreeBSD) is abstracted being Process Plugins, which the generic code uses.

Re: [lldb-dev] LLDB Process Attach Failed When Waiting

2018-06-05 Thread Ryan Lovelett via lldb-dev
Thank you that was a huge help. I'm making some progress now. Though I wonder, is there any documentation of the GDB packet format? The reason I ask is that I'm trying to figure out to get the process name from vAttach. I've looked at how debugserver does it, namely the method GetProcessNameF