summaryrefslogtreecommitdiff
path: root/python/examples/mappedview.py
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2022-10-07 15:55:43 -0400
committerKyleMiles <krm504@nyu.edu>2022-10-09 18:08:24 -0400
commit1d21f2de35633113c38692a4fcb7e0481c96fd08 (patch)
tree0d30c740c9279940fa07d04f380c554a02b0632b /python/examples/mappedview.py
parented4dbf7bad554078139dcde3b437527078dc42ec (diff)
Remove default load settings; Move settings `analysis.debugInfoInternal` and `loader.debugInfoExternal` to `analysis.debugInfo.internal` and `analysis.debugInfo.external`
Diffstat (limited to 'python/examples/mappedview.py')
-rw-r--r--python/examples/mappedview.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/examples/mappedview.py b/python/examples/mappedview.py
index cfefa87a..0b74ce3a 100644
--- a/python/examples/mappedview.py
+++ b/python/examples/mappedview.py
@@ -53,7 +53,7 @@ class MappedView(BinaryView):
def get_load_settings_for_data(cls, data):
# This method is optional. If provided this is where the Load Settings for a BinaryViewType are specified. Binary Ninja provides
# some default read-only load settings which are:
- # ["loader.architecture", "loader.platform", "loader.entryPointOffset", "loader.imageBase", "loader.segments", "loader.sections", "loader.debugInfoInternal", "loader.debugInfoExternal"]
+ # ["loader.architecture", "loader.platform", "loader.entryPointOffset", "loader.imageBase", "loader.segments", "loader.sections"]
# The default load settings are provided for consistency and convenience.
# The default load settings are always generated with a read-only indication which is respected by the UI.
# The read-only indication is a property that consists of a JSON name/value pair ("readOnly" : true).
@@ -75,10 +75,7 @@ class MappedView(BinaryView):
load_settings = registered_view.get_default_load_settings_for_data(view)
# Specify default load settings that can be overridden (from the UI).
- overrides = [
- "loader.architecture", "loader.platform", "loader.entryPointOffset", "loader.imageBase",
- "loader.segments", "loader.sections", "loader.debugInfoInternal", "loader.debugInfoExternal"
- ]
+ overrides = ["loader.architecture", "loader.platform", "loader.entryPointOffset", "loader.imageBase", "loader.segments", "loader.sections"]
for override in overrides:
if load_settings.contains(override):
load_settings.update_property(override, json.dumps({'readOnly': False}))