[Lldb-commits] [PATCH] D33426: Introduce new command: thread backtrace unique

2017-05-26 Thread Brian Gianforcaro via Phabricator via lldb-commits
bgianfo updated this revision to Diff 100529. bgianfo marked 7 inline comments as done. bgianfo added a comment. Address Pavel and Greg's feedback on Diff 100365. Pavel: I took your suggestions to make the test case more readable, I really appreciate the guidance. I did have to tweak some of the

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-26 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:1304 + // Allocate the response buffer. + uint8_t *buffer = new (std::nothrow) uint8_t[byte_count]; + if (buffer == nullptr) labath wrote: > Hey

Re: [Lldb-commits] [PATCH] D33504: Fix FDE indexing while scan debug_info section

2017-05-26 Thread Tatyana Krasnukha via lldb-commits
Yes, and it is what we need - this version increases when section undergo incompatible changes. Thanks, Tatyana -Original Message- From: Abid, Hafiz [mailto:hafiz_a...@mentor.com] Sent: Friday, 26 May, 2017 7:51 PM To: Pavel Labath ; Tatyana Krasnukha Cc: lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D33426: Introduce new command: thread backtrace unique

2017-05-26 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We should probably store the stacks as lldb::addr_t values that are load addresses for quicker comparisons and searches. Inlined code details things more clearly.

Re: [Lldb-commits] [PATCH] D33504: Fix FDE indexing while scan debug_info section

2017-05-26 Thread Abid, Hafiz via lldb-commits
Please note that version in the debug_frame is is specific to the call frame information. It is not the same as DWARF version number. Regards, Abid From: lldb-commits on behalf of Tatyana Krasnukha via lldb-commits Sent: Friday, May 26, 2017 12:47 PM To

Re: [Lldb-commits] Documentation LLDB-MI

2017-05-26 Thread Jim Ingham via lldb-commits
The virtue of the MI interface is that it allows you to write a tool that supports gdb as well as lldb. But the MI is a not an API per se, it's just a structured text interface. You send text commands to the MI server, and receive text results which you then parse to extract the results. If

Re: [Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-26 Thread Zachary Turner via lldb-commits
Or just use a std vector On Fri, May 26, 2017 at 7:00 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added inline comments. > > > > Comment at: > source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:1304 > + // Allocate the response

[Lldb-commits] [lldb] r303991 - Fixing Memory Leak

2017-05-26 Thread Ravitheja Addepally via lldb-commits
Author: ravitheja Date: Fri May 26 09:26:14 2017 New Revision: 303991 URL: http://llvm.org/viewvc/llvm-project?rev=303991&view=rev Log: Fixing Memory Leak Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp Modified: lldb/trunk/source/Plugins/Process

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-26 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:1304 + // Allocate the response buffer. + uint8_t *buffer = new (std::nothrow) uint8_t[byte_count]; + if (buffer == nullptr) Hey, ravi. You're lea

[Lldb-commits] [lldb] r303988 - Fix 32-bit builds

2017-05-26 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri May 26 08:53:39 2017 New Revision: 303988 URL: http://llvm.org/viewvc/llvm-project?rev=303988&view=rev Log: Fix 32-bit builds r303972 used GetValueForKeyAsInteger with mismatched types (e.g. instantiating with uint64_t, but passing a size_t argument), which manifested its

Re: [Lldb-commits] [PATCH] D33504: Fix FDE indexing while scan debug_info section

2017-05-26 Thread Tatyana Krasnukha via lldb-commits
.debug_frame may exist, even if there is no other debugging information. In this case we cannot obtain DWARF version from debug_info and ParseCIE is the only place where we can get CIE version and check whether it is supported or not. Thanks, Tatyana -Original Message- From: Pavel Laba

[Lldb-commits] [lldb] r303972 - Implementation of remote packets for Trace data.

2017-05-26 Thread Ravitheja Addepally via lldb-commits
Author: ravitheja Date: Fri May 26 06:46:27 2017 New Revision: 303972 URL: http://llvm.org/viewvc/llvm-project?rev=303972&view=rev Log: Implementation of remote packets for Trace data. Summary: The changes consist of new packets for trace manipulation and trace collection. The new packets are als

Re: [Lldb-commits] [PATCH] D33504: Fix FDE indexing while scan debug_info section

2017-05-26 Thread Pavel Labath via lldb-commits
Yes, that would definitely be a good idea. I was just saying that we shouldn't gate *any* .debug_frame support on being able to read a dwarf4 .debug_frame section. BTW, we've had a short chat about this with Abidh on IRC, I am going to paste the relevant part here, to make sure everyone is on the

[Lldb-commits] [PATCH] D33426: Introduce new command: thread backtrace unique

2017-05-26 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. thanks for the effort. I found the logic of the test quite difficult to follow, with multiple breakpoints and notify_calls(). Instead of trying to point out each problem, I figured it will be easier to write my take on how the test could look like: https://paste.ubuntu.c

[Lldb-commits] Documentation LLDB-MI

2017-05-26 Thread Laghzaoui Mohammed via lldb-commits
Hi Lists, I have to implement a graphical interface to open the Dump of Macos with LLDB. I know how to do this using the command line, but this and less productive, I found that LLDB-MI little make me an interface to do this need but I did not find an example of LLDB-MI in C ++ and How to build LLD

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-26 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. Ok, I think this makes a reasonable starting point for further work. We just need to tighten the condition on when to run these tests. Comment at: unittests/tools/CMakeLists

[Lldb-commits] [PATCH] D33434: Added new API to SBStructuredData class

2017-05-26 Thread Abhishek via Phabricator via lldb-commits
abhishek.aggarwal updated this revision to Diff 100376. abhishek.aggarwal added a comment. Updating https://reviews.llvm.org/D33434: Added new API to SBStructuredData class - Removed inferior from test case (not required) - fixed enum scope https://reviews.llvm.org/D33434 Files: include/lld

[Lldb-commits] [PATCH] D33434: Added new API to SBStructuredData class

2017-05-26 Thread Abhishek via Phabricator via lldb-commits
abhishek.aggarwal marked 2 inline comments as done. abhishek.aggarwal added a comment. Thanks for your suggestions. I have made changes according to feedback and submitting it here. https://reviews.llvm.org/D33434 ___ lldb-commits mailing list lldb