diff options
| author | Valentina Giusti <valentina.giusti@intel.com> | 2016-09-05 17:43:10 +0000 |
|---|---|---|
| committer | Valentina Giusti <valentina.giusti@intel.com> | 2016-09-05 17:43:10 +0000 |
| commit | f105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6 (patch) | |
| tree | 9547ee4b31a6203a7a6e3745ae475ad792befc46 /lldb/packages/Python/lldbsuite/test/functionalities/register/main.cpp | |
| parent | 9bd34f975157df546bd57e7a5d86a8aace7d573b (diff) | |
| download | bcm5719-llvm-f105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6.tar.gz bcm5719-llvm-f105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6.zip | |
Intel(R) Memory Protection Extensions (Intel(R) MPX) support.
Summary:
The Intel(R) Memory Protection Extensions (Intel(R) MPX) associates pointers
to bounds, against which the software can check memory references to
prevent out of bound memory access.
This patch allows accessing the MPX registers:
* bnd0-3: 128-bit registers to hold the bound values,
* bndcfgu, bndstatus: 64-bit configuration registers,
This patch also adds read/write tests for the MPX registers in the register
command tests and adds a new subdirectory for MPX specific tests.
Signed-off-by: Valentina Giusti <valentina.giusti@intel.com>
Reviewers: labath, granata.enrico, lldb-commits, clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D24187
llvm-svn: 280668
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/register/main.cpp')
| -rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/register/main.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/register/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/register/main.cpp deleted file mode 100644 index 156515768dd..00000000000 --- a/lldb/packages/Python/lldbsuite/test/functionalities/register/main.cpp +++ /dev/null @@ -1,36 +0,0 @@ -//===-- main.cpp ------------------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -#include <stdio.h> - -#include <chrono> -#include <thread> - -long double outermost_return_long_double (long double my_long_double); - -int main (int argc, char const *argv[]) -{ - lldb_enable_attach(); - - char my_string[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 0}; - double my_double = 1234.5678; - long double my_long_double = 1234.5678; - - // For simplicity assume that any cmdline argument means wait for attach. - if (argc > 1) - { - volatile int wait_for_attach=1; - while (wait_for_attach) - std::this_thread::sleep_for(std::chrono::microseconds(1)); - } - - printf("my_string=%s\n", my_string); - printf("my_double=%g\n", my_double); - outermost_return_long_double (my_long_double); - return 0; -} |

