summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/interface
diff options
context:
space:
mode:
authorAbhishek Aggarwal <abhishek.a.aggarwal@intel.com>2016-09-08 12:22:56 +0000
committerAbhishek Aggarwal <abhishek.a.aggarwal@intel.com>2016-09-08 12:22:56 +0000
commit3c7f070956c7305656d0bd4a59317c09a5186941 (patch)
tree2733efddaf67ba2fbb81681016a09b206c322d83 /lldb/scripts/interface
parent2a526feec9e16be2624de041227cfe10d9d39ab4 (diff)
downloadbcm5719-llvm-3c7f070956c7305656d0bd4a59317c09a5186941.tar.gz
bcm5719-llvm-3c7f070956c7305656d0bd4a59317c09a5186941.zip
LLDB: API for iPermission of object file's sections
Summary: - Added an API to public interface that provides permissions (RWX) of individual sections of an object file - Earlier, there was no way to find out this information through SB APIs - A possible use case of this API is: when a user wants to know the sections that have executable machine instructions and want to write a tool on top of LLDB based on this information - Differential Revision: https://reviews.llvm.org/D24251 llvm-svn: 280924
Diffstat (limited to 'lldb/scripts/interface')
-rw-r--r--lldb/scripts/interface/SBSection.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBSection.i b/lldb/scripts/interface/SBSection.i
index c94161e412b..5f8b30156e5 100644
--- a/lldb/scripts/interface/SBSection.i
+++ b/lldb/scripts/interface/SBSection.i
@@ -90,6 +90,9 @@ public:
SectionType
GetSectionType ();
+ uint32_t
+ GetPermissions() const;
+
%feature("docstring", "
//------------------------------------------------------------------
/// Return the size of a target's byte represented by this section
OpenPOWER on IntegriCloud