[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-02-01 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti added a comment. I am not sure what you mean, this is a pluggable command and as such it has to be a dynamic loadable lib. As for the wrong install name of the binary, I don't think I can fix it from here, the SOVERSION is set by AddLLVM.cmake. On which platform did you get this

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-02-01 Thread Sylvestre Ledru via Phabricator via lldb-commits
sylvestre.ledru added a comment. Like llvm or lldb in general, just integrate it into liblldb? By the way, liblldb-intel-mpxtable.so-5.0 is incorrect should be liblldb-intel-mpxtable.so.5.0 Repository: rL LLVM https://reviews.llvm.org/D29078

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-02-01 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti added a comment. Do you have a better proposal? Repository: rL LLVM https://reviews.llvm.org/D29078 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-02-01 Thread Sylvestre Ledru via Phabricator via lldb-commits
sylvestre.ledru added a comment. This change is creating a new library usr/lib/llvm-5.0/bin/liblldb-intel-mpxtable.so on GNU/Linux 64b That sounds pretty specific, is that really something that we want to do? Repository: rL LLVM https://reviews.llvm.org/D29078

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-31 Thread Valentina Giusti via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL293660: Add a command to access and manipulate the Intel(R) MPX Boundary Tables. (authored by valentinagiusti). Changed prior to commit: https://reviews.llvm.org/D29078?vs=85906=86453#toc Repository:

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-31 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. If we can add a comment around "bndcfgu" where we use an SBData since it is a vector register and SBValue::GetValueAsUnsigned(...) won't work because it is a vector that would be nice for

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-26 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti updated this revision to Diff 85906. valentinagiusti marked an inline comment as done. valentinagiusti added a comment. used GetAddress() instead of GetUnsignedIntXX() https://reviews.llvm.org/D29078 Files: tools/CMakeLists.txt tools/intel-mpx/CMakeLists.txt

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-26 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti marked 2 inline comments as done. valentinagiusti added inline comments. Comment at: tools/intel-mpx/IntelMPXTablePlugin.cpp:219 +} + +static std::vector uIntToU8(uint64_t input, size_t size) { clayborg wrote: > I'll fix SBData and this should

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Let me know why your GetValueAsUnsigned isn't working on your register by stepping through it. https://reviews.llvm.org/D29078 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. I fixed SBData with: Sendingpackages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py Sendingsource/API/SBData.cpp Transmitting file data ..done Committing transaction... Committed revision 293102. https://reviews.llvm.org/D29078

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: tools/intel-mpx/IntelMPXTablePlugin.cpp:151 + // + bd_entry--; + clayborg wrote: > There is indeed a bug in SBData::SetData(): > > ``` > void SBData::SetData(lldb::SBError , const void *buf, size_t size, >

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: tools/intel-mpx/IntelMPXTablePlugin.cpp:151 + // + bd_entry--; + There is indeed a bug in SBData::SetData(): ``` void SBData::SetData(lldb::SBError , const void *buf, size_t size,

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti updated this revision to Diff 85733. valentinagiusti added a comment. Applied some of the proposed changes. https://reviews.llvm.org/D29078 Files: tools/CMakeLists.txt tools/intel-mpx/CMakeLists.txt tools/intel-mpx/IntelMPXTablePlugin.cpp tools/intel-mpx/test/Makefile

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti marked 3 inline comments as done. valentinagiusti added inline comments. Comment at: tools/intel-mpx/IntelMPXTablePlugin.cpp:199-218 + if (arch == llvm::Triple::ArchType::x86_64) { +lbound = toU64(bt_entry_v[7], bt_entry_v[6], bt_entry_v[5], bt_entry_v[4], +

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-25 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti marked 2 inline comments as done. valentinagiusti added a comment. Hi Greg, thanks a lot for your review. I have a question about the API that you proposed, please have a look at the inline comments. Comment at: tools/intel-mpx/IntelMPXTablePlugin.cpp:143-150

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-24 Thread Enrico Granata via Phabricator via lldb-commits
granata.enrico resigned from this revision. granata.enrico added a comment. I don't work on LLDB anymore. Resigning as reviewer. Best of luck with your patch :-) https://reviews.llvm.org/D29078 ___ lldb-commits mailing list

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-24 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Noticed another efficiency thing, see inlined comment. Comment at: tools/intel-mpx/IntelMPXTablePlugin.cpp:37 + ptr_str.insert(0, "&"); + lldb::SBValue ptr_addr = frame.GetValueForVariablePath(ptr_str.c_str()); + if (!ptr_addr.IsValid()) {

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-24 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. There are a few places where you are reading memory and then wanting to decode data from it. Right now, you first read memory into a local buffer and then we create an SBData

[Lldb-commits] [PATCH] D29078: This patch implements a command to access and manipulate the Intel(R) MPX Boundary Tables.

2017-01-24 Thread Valentina Giusti via Phabricator via lldb-commits
valentinagiusti created this revision. Herald added a subscriber: mgorny. The Boundary Table Entries are stored in the application memory and allow to store boundary info for all the pointers of the program, also those that otherwise wouldn't fit in the 4 bound registers provided by the HW. Here