Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-406: Central Debug Console for problems and actions

Dana1cfeebcc93c
diff --git a/Ghidra/Debug/Debugger/certification.manifest b/Ghidra/Debug/Debugger/certification.manifest
index 1e12776852..9f50cd3e65 100644
--- a/Ghidra/Debug/Debugger/certification.manifest
+++ b/Ghidra/Debug/Debugger/certification.manifest
@@ -38,11 +38,12 @@ src/main/help/help/topics/DebuggerBreakpointsPlugin/images/breakpoint-mixed-ed.p
src/main/help/help/topics/DebuggerBreakpointsPlugin/images/breakpoints-clear-all.png||GHIDRA||||END|
src/main/help/help/topics/DebuggerBreakpointsPlugin/images/breakpoints-disable-all.png||GHIDRA||||END|
src/main/help/help/topics/DebuggerBreakpointsPlugin/images/breakpoints-enable-all.png||GHIDRA||||END|
+src/main/help/help/topics/DebuggerConsolePlugin/DebuggerConsolePlugin.html||GHIDRA||||END|
+src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png||GHIDRA||||END|
src/main/help/help/topics/DebuggerInterpreterPlugin/DebuggerInterpreterPlugin.html||GHIDRA||||END|
src/main/help/help/topics/DebuggerListingPlugin/DebuggerListingPlugin.html||GHIDRA||||END|
src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerGoToDialog.png||GHIDRA||||END|
src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerListingPlugin.png||GHIDRA||||END|
-src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerModuleImportDialog.png||GHIDRA||||END|
src/main/help/help/topics/DebuggerMemviewPlugin/DebuggerMemviewPlugin.html||GHIDRA||||END|
src/main/help/help/topics/DebuggerMemviewPlugin/images/DebuggerMemviewPlugin.png||GHIDRA||||END|
src/main/help/help/topics/DebuggerMemviewPlugin/images/DebuggerMemviewPlugin_old.png||GHIDRA||||END|
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/TOC_Source.xml b/Ghidra/Debug/Debugger/src/main/help/help/TOC_Source.xml
index a9902c2ef8..d21c44c30c 100644
--- a/Ghidra/Debug/Debugger/src/main/help/help/TOC_Source.xml
+++ b/Ghidra/Debug/Debugger/src/main/help/help/TOC_Source.xml
@@ -74,6 +74,10 @@
target="help/topics/DebuggerModelServicePlugin/DebuggerModelServicePlugin.html" />
</tocdef>
+ <tocdef id="DebuggerConsolePlugin" text="Debug Console"
+ sortgroup="c1"
+ target="help/topics/DebuggerConsolePlugin/DebuggerConsolePlugin.html" />
+
<tocdef id="DebuggerObjectsPlugin" text="Commands and Objects"
sortgroup="d"
target="help/topics/DebuggerObjectsPlugin/DebuggerObjectsPlugin.html" />
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/Debugger/Troubleshooting.html b/Ghidra/Debug/Debugger/src/main/help/help/topics/Debugger/Troubleshooting.html
index c851714c51..0ed4ff62bc 100644
--- a/Ghidra/Debug/Debugger/src/main/help/help/topics/Debugger/Troubleshooting.html
+++ b/Ghidra/Debug/Debugger/src/main/help/help/topics/Debugger/Troubleshooting.html
@@ -15,9 +15,10 @@
<H2>Error Console</H2>
- <P>The first place to look when you're having trouble is the error console. In Eclipse, this is
- just the "Console" window. In Ghidra, it can be accessed from the main application window.
- Sometimes it reports known issues; sometimes it reports unexpected behavior; etc., which may be
+ <P>The first place to look when you're having trouble is the Debug Console. Second, if you're
+ in Eclipse, you can check its "Console" window. Often, Ghidra's Debug Console will offer
+ actions to help you resolve a well-known issue or configuration problem. It also duplicates the
+ error log, when those messages are emitted from a debugger-related class. These typically offer
clues to exactly what has gone wrong.</P>
<H2>Settings and Toggles</H2>
@@ -38,9 +39,6 @@
<P>In the Dynamic Listing:</P>
<UL>
- <LI>"Auto-Import Current Module" will cause the user to be prompted for information to sync
- static and dynamic listings.</LI>
-
<LI>"Sync to Static Listing" controls the tracking of the Static listing.</LI>
</UL>
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/DebuggerConsolePlugin.html b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/DebuggerConsolePlugin.html
new file mode 100644
index 0000000000..30e30a3393
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/DebuggerConsolePlugin.html
@@ -0,0 +1,68 @@
+<!DOCTYPE doctype PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
+
+<HTML>
+ <HEAD>
+ <META name="generator" content=
+ "HTML Tidy for Java (vers. 2009-12-01), see jtidy.sourceforge.net">
+
+ <TITLE>Debugger: Memory Regions</TITLE>
+ <META http-equiv="Content-Type" content="text/html; charset=windows-1252">
+ <LINK rel="stylesheet" type="text/css" href="../../shared/Frontpage.css">
+ </HEAD>
+
+ <BODY lang="EN-US">
+ <H1><A name="plugin"></A>Debugger: Console</H1>
+
+ <TABLE width="100%">
+ <TBODY>
+ <TR>
+ <TD align="center" width="100%"><IMG alt="" border="1" src=
+ "images/DebuggerConsolePlugin.png"></TD>
+ </TR>
+ </TBODY>
+ </TABLE>
+
+ <P>The console logs messages from Ghidra related to the debugger. Depending on the exact
+ configuration, this can comprise a wide range of components, including all GUI views, active
+ connectors, and running agents. Currently, it implements an appender to gather all Log4J
+ messages emitted by Ghidra and filters for debugger-related packages and a level in the range
+ INFO through and including FATAL. That feature will likely be removed as more components are
+ programmed to work directly with the console. Soon, it may also provide a command-line
+ interface to control Ghidra's debugging sessions and interact with traces.</P>
+
+ <P>Some log messages include an action context, allowing plug-ins to offer actions on that
+ message. These are said to be "actionable" messages. A noteworthy example is when navigating to
+ a module that could not be automatically mapped from the current project. Instead of displaying
+ a prompt, it will log a message and suggest actions to resolve the issue. A successful
+ resolution typically removes the message from the log. Note that additional actions may be
+ available from the context menu.</P>
+
+ <P>By default, the log is sorted so that actionable messages appear at the top. Then, it is
+ sorted by descending date, so that the most recent messages appear at the top. Like any other
+ Ghidra table, it can customized and filtered. Note that the filter box is at the top, because
+ we anticipate a command-line input in the future, which we'd like to place at the bottom.</P>
+
+ <H2>Table Columns</H2>
+
+ <P>The table has the following columns:</P>
+
+ <UL>
+ <LI>Icon - an icon to identify the type, topic, or source of a message.</LI>
+
+ <LI>Message - the message itself.</LI>
+
+ <LI>Actions - if actionable, a row of buttons for available actions.</LI>
+
+ <LI>Time - the time the message was generated in 24-hour HH:mm:ss.SSS format.</LI>
+ </UL>
+
+ <H2>Actions</H2>
+
+ <P>Not considering extension actions from other plugins, the console provides the
+ following:</P>
+
+ <H3><A name="clear"></A>Clear</H3>
+
+ <P>Removes all messages, including actionable messages, from the log.</P>
+ </BODY>
+</HTML>
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png
new file mode 100644
index 0000000000..79f8089b97
Binary files /dev/null and b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerConsolePlugin/images/DebuggerConsolePlugin.png differ
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerInterpreterPlugin/DebuggerInterpreterPlugin.html b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerInterpreterPlugin/DebuggerInterpreterPlugin.html
index e697480995..16706c488c 100644
--- a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerInterpreterPlugin/DebuggerInterpreterPlugin.html
+++ b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerInterpreterPlugin/DebuggerInterpreterPlugin.html
@@ -42,9 +42,9 @@
immediately upon the associated target interpreter becoming invalid, i.e., the connection was
closed. Pinning an interpreter keeps it open, but in a disabled state, so that the buffer can
be examined after invalidation.</P>
-
+
<H3><A name="interrupt"></A>Interrupt</H3>
-
+
<P>This action is always available. It interrupts the current target's execution.</P>
</BODY>
</HTML>
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/DebuggerListingPlugin.html b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/DebuggerListingPlugin.html
index ad4215d60c..9769c18d68 100644
--- a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/DebuggerListingPlugin.html
+++ b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/DebuggerListingPlugin.html
@@ -131,7 +131,9 @@
computed using information about loaded modules reported by the debugger. For the finer
details, see the <A href=
"help/topics/DebuggerStaticMappingPlugin/DebuggerStaticMappingPlugin.html">Static Mappings</A>
- window.</P>
+ window. When you navigate to a location contained by a module, but there is no corresponding
+ static location, the listing logs a "missing module" to the console, offering either to import
+ the module or map it to an existing program.</P>
<H3><A name="capture_memory"></A>Capture Memory</H3>
@@ -162,29 +164,6 @@
neglect to capture read-only ranges that have been captured previously.</LI>
</UL>
- <H3><A name="auto_import_module"></A>Auto-Import Current Module</H3>
-
- <P>This toggle is available whenever Sync to Static Listing is enabled. It causes Ghidra to
- prompt the user to import unknown modules. Specifically, when Ghidra cannot map the dynamic
- listing's location to a static location, but the debugger reports a module containing the
- dynamic address, it prompts the user to import that module:</P>
-
- <TABLE width="100%">
- <TBODY>
- <TR>
- <TD align="center" width="100%"><IMG alt="" src=
- "images/DebuggerModuleImportDialog.png"></TD>
- </TR>
- </TBODY>
- </TABLE>
-
- <P>This non-modal dialog collects those prompts and appears whenever a new module is suggested.
- To import a module, click the import icon to the suggestion's right. To remove an entry, click
- the delete icon to the suggestions's left. To ignore an entry, check the box to the left of the
- suggestion and dismiss the dialog. Note that a removed suggestion is not ignored. Ghidra may
- suggest that module again. To import modules manually, see the <A href=
- "help/topics/DebuggerModulesPlugin/DebuggerModulesPlugin.html">Modules</A> window.</P>
-
<H2><A name="colors"></A>Tool Options: Colors</H2>
<P>The memory-state and tracked-location background colors can all be configured here.</P>
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerModuleImportDialog.png b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerModuleImportDialog.png
deleted file mode 100644
index 0cab69707e..0000000000
Binary files a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerListingPlugin/images/DebuggerModuleImportDialog.png and /dev/null differ
diff --git a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/DebuggerModulesPlugin.html b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/DebuggerModulesPlugin.html
index d7a3eee373..445e0c380b 100644
--- a/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/DebuggerModulesPlugin.html
+++ b/Ghidra/Debug/Debugger/src/main/help/help/topics/DebuggerModulesPlugin/DebuggerModulesPlugin.html
@@ -145,6 +145,16 @@
It behaves like Map Sections, except that it will propose the selected section be mapped to the
block containing the cursor in the static listing.</P>
+ <H3><A name="import_missing_module"></A>Import Missing Module</H3>
+
+ <P>This action is offered to resolve a "Missing Module" console message. It is equivalent to <A
+ href="#import_from_fs">Import From File System</A> on the missing module.</P>
+
+ <H3><A name="map_missing_module"></A>Map Missing Module</H3>
+
+ <P>This action is offered to resolve a "Missing Module" console message. It is equivalent to <A
+ href="#map_module_to">Map Module To</A> on the missing module.</P>
+
<H3><A name="filter_by_module"></A>Filter Sections by Module</H3>
<P>This action is always available. By default the bottom table displays all sections in the
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/DebuggerResources.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/DebuggerResources.java
index a254a77e34..13a613fac6 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/DebuggerResources.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/DebuggerResources.java
@@ -32,6 +32,7 @@ import docking.widgets.table.*;
import docking.widgets.tree.GTreeNode;
import ghidra.app.plugin.core.debug.DebuggerPluginPackage;
import ghidra.app.plugin.core.debug.gui.breakpoint.DebuggerBreakpointsPlugin;
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsolePlugin;
import ghidra.app.plugin.core.debug.gui.listing.DebuggerListingPlugin;
import ghidra.app.plugin.core.debug.gui.memory.DebuggerRegionsPlugin;
import ghidra.app.plugin.core.debug.gui.modules.DebuggerModulesPlugin;
@@ -118,6 +119,7 @@ public interface DebuggerResources {
ImageIcon ICON_CLOSE = ResourceManager.loadImage("images/x.gif");
ImageIcon ICON_ADD = ResourceManager.loadImage("images/add.png");
ImageIcon ICON_DELETE = ResourceManager.loadImage("images/delete.png");
+ ImageIcon ICON_CLEAR = ResourceManager.loadImage("images/erase16.png");
ImageIcon ICON_REFRESH = ResourceManager.loadImage("images/view-refresh.png");
ImageIcon ICON_FILTER = ResourceManager.loadImage("images/filter_off.png"); // Eww.
ImageIcon ICON_SELECT_ROWS = ResourceManager.loadImage("images/table_go.png");
@@ -128,7 +130,7 @@ public interface DebuggerResources {
//ResourceManager.loadImage("images/capture-memory.png");
// TODO: Draw an icon
- ImageIcon ICON_MAP_MODULES = ResourceManager.loadImage("images/map-modules.png");
+ ImageIcon ICON_MAP_MODULES = ResourceManager.loadImage("images/modules.png");
ImageIcon ICON_MAP_SECTIONS = ICON_MAP_MODULES; // TODO
ImageIcon ICON_BLOCK = ICON_MAP_SECTIONS; // TODO
// TODO: Draw an icon
@@ -138,6 +140,10 @@ public interface DebuggerResources {
// TODO: Draw an icon?
ImageIcon ICON_CAPTURE_SYMBOLS = ResourceManager.loadImage("images/closedFolderLabels.png");
+ ImageIcon ICON_LOG_FATAL = ResourceManager.loadImage("images/edit-bomg.png");
+ ImageIcon ICON_LOG_ERROR = ResourceManager.loadImage("images/dialog-warning_red.png");
+ ImageIcon ICON_LOG_WARN = ResourceManager.loadImage("images/dialog-warning.png");
+
ImageIcon ICON_SYNC = ResourceManager.loadImage("images/sync_enabled.png");
ImageIcon ICON_VISIBILITY = ResourceManager.loadImage("images/format-text-bold.png");
@@ -156,6 +162,11 @@ public interface DebuggerResources {
HelpLocation HELP_PROVIDER_BREAKPOINTS = new HelpLocation(
PluginUtils.getPluginNameFromClass(DebuggerBreakpointsPlugin.class), HELP_ANCHOR_PLUGIN);
+ String TITLE_PROVIDER_CONSOLE = "Debug Console";
+ ImageIcon ICON_PROVIDER_CONSOLE = ICON_CONSOLE;
+ HelpLocation HELP_PROVIDER_CONSOLE = new HelpLocation(
+ PluginUtils.getPluginNameFromClass(DebuggerConsolePlugin.class), HELP_ANCHOR_PLUGIN);
+
String TITLE_PROVIDER_LISTING = "Dynamic";
ImageIcon ICON_PROVIDER_LISTING = ICON_LISTING;
HelpLocation HELP_PROVIDER_LISTING = new HelpLocation(
@@ -310,6 +321,9 @@ public interface DebuggerResources {
"Colors.Ineffective Disabled Breakpoint Markers Have Background";
boolean DEFAULT_COLOR_INEFFECTIVE_D_BREAKPOINT_COLORING_BACKGROUND = false;
+ String OPTION_NAME_LOG_BUFFER_LIMIT = "Log Buffer Size";
+ int DEFAULT_LOG_BUFFER_LIMIT = 100;
+
// TODO: Re-assign/name groups
String GROUP_GENERAL = "Dbg1. General";
String GROUP_CONNECTION = "Dbg2. Connection";
@@ -645,7 +659,7 @@ public interface DebuggerResources {
.helpLocation(new HelpLocation(ownerName, HELP_ANCHOR));
}
}
-
+
interface InterpreterInterruptAction {
String NAME = "Interpreter Interrupt";
String DESCRIPTION = "Send an interrupt through this Interpreter";
@@ -733,17 +747,36 @@ public interface DebuggerResources {
}
}
- interface AutoImportCurrentModuleAction {
- String NAME = "Auto-Import Current Module";
- String DESCRIPTION = "Import missing module at the cursor";
+ interface ImportMissingModuleAction {
+ String NAME = "Import Missing Module";
+ String DESCRIPTION = "Import the missing module from disk";
Icon ICON = ICON_IMPORT;
- String HELP_ANCHOR = "auto_import_module";
+ String HELP_ANCHOR = "import_missing_module";
- static ToggleActionBuilder builder(Plugin owner) {
+ static ActionBuilder builder(Plugin owner) {
String ownerName = owner.getName();
- return new ToggleActionBuilder(NAME, ownerName).description(DESCRIPTION)
- .menuIcon(ICON)
- .menuPath(NAME)
+ return new ActionBuilder(NAME, ownerName)
+ .description(DESCRIPTION)
+ .toolBarIcon(ICON)
+ .popupMenuIcon(ICON)
+ .popupMenuPath(NAME)
+ .helpLocation(new HelpLocation(ownerName, HELP_ANCHOR));
+ }
+ }
+
+ interface MapMissingModuleAction {
+ String NAME = "Map Missing Module";
+ String DESCRIPTION = "Map the missing module to an existing import";
+ Icon ICON = ICON_MAP_MODULES;
+ String HELP_ANCHOR = "map_missing_module";
+
+ static ActionBuilder builder(Plugin owner) {
+ String ownerName = owner.getName();
+ return new ActionBuilder(NAME, ownerName)
+ .description(DESCRIPTION)
+ .toolBarIcon(ICON)
+ .popupMenuIcon(ICON)
+ .popupMenuPath(NAME)
.helpLocation(new HelpLocation(ownerName, HELP_ANCHOR));
}
}
@@ -862,7 +895,8 @@ public interface DebuggerResources {
static ActionBuilder builder(Plugin owner) {
String ownerName = owner.getName();
- return new ActionBuilder(NAME, ownerName).toolBarGroup(GROUP)
+ return new ActionBuilder(NAME, ownerName)
+ .toolBarGroup(GROUP)
.toolBarIcon(ICON)
.helpLocation(new HelpLocation(ownerName, HELP_ANCHOR));
}
@@ -879,7 +913,26 @@ public interface DebuggerResources {
}
static ActionBuilder builder(String ownerName) {
- return new ActionBuilder(NAME, ownerName).toolBarGroup(GROUP)
+ return new ActionBuilder(NAME, ownerName)
+ .toolBarGroup(GROUP)
+ .toolBarIcon(ICON)
+ .helpLocation(new HelpLocation(ownerName, HELP_ANCHOR));
+ }
+ }
+
+ interface ClearAction {
+ String NAME = "Clear";
+ String GROUP = "yyyy";
+ Icon ICON = ICON_CLEAR;
+ String HELP_ANCHOR = "clear";
+
+ static ActionBuilder builder(Plugin owner) {
+ return builder(owner.getName());
+ }
+
+ static ActionBuilder builder(String ownerName) {
+ return new ActionBuilder(NAME, ownerName)
+ .toolBarGroup(GROUP)
.toolBarIcon(ICON)
.helpLocation(new HelpLocation(ownerName, HELP_ANCHOR));
}
@@ -892,7 +945,21 @@ public interface DebuggerResources {
static ToggleActionBuilder builder(Plugin owner) {
String ownerName = owner.getName();
- return new ToggleActionBuilder(NAME, ownerName).toolBarGroup(GROUP).toolBarIcon(ICON);
+ return new ToggleActionBuilder(NAME, ownerName)
+ .toolBarGroup(GROUP)
+ .toolBarIcon(ICON);
+ }
+ }
+
+ interface SelectNoneAction {
+ String NAME = "Select None";
+ String GROUP = "Select";
+
+ static ActionBuilder builder(Plugin owner) {
+ String ownerName = owner.getName();
+ return new ActionBuilder(NAME, ownerName)
+ .popupMenuGroup(GROUP)
+ .popupMenuPath(NAME);
}
}
@@ -904,7 +971,8 @@ public interface DebuggerResources {
static ActionBuilder builder(Plugin owner) {
String ownerName = owner.getName();
- return new ActionBuilder(NAME, ownerName).toolBarGroup(GROUP)
+ return new ActionBuilder(NAME, ownerName)
+ .toolBarGroup(GROUP)
.helpLocation(new HelpLocation(ownerName, HELP_ANCHOR))
.toolBarIcon(ICON);
}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/ConsoleActionsCellEditor.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/ConsoleActionsCellEditor.java
new file mode 100644
index 0000000000..866fb4f53b
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/ConsoleActionsCellEditor.java
@@ -0,0 +1,67 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import java.awt.Component;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.swing.*;
+import javax.swing.table.TableCellEditor;
+
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsoleProvider.ActionList;
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsoleProvider.BoundAction;
+
+public class ConsoleActionsCellEditor extends AbstractCellEditor
+ implements TableCellEditor, ActionListener {
+ private static final ActionList EMPTY_ACTION_LIST = new ActionList();
+
+ protected final JPanel box = new JPanel();
+ protected final List<JButton> buttonCache = new ArrayList<>();
+
+ protected ActionList value;
+
+ public ConsoleActionsCellEditor() {
+ ConsoleActionsCellRenderer.configureBox(box);
+ }
+
+ @Override
+ public Object getCellEditorValue() {
+ return EMPTY_ACTION_LIST;
+ }
+
+ @Override
+ public Component getTableCellEditorComponent(JTable table, Object v, boolean isSelected,
+ int row, int column) {
+ // I can't think of when you'd be "editing" a non-selected cell.
+ box.setBackground(table.getSelectionBackground());
+
+ value = (ActionList) v;
+ ConsoleActionsCellRenderer.populateBox(box, buttonCache, value,
+ button -> button.addActionListener(this));
+ return box;
+ }
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ int index = buttonCache.indexOf(e.getSource());
+ BoundAction action = value.get(index);
+ stopCellEditing();
+ action.perform();
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/ConsoleActionsCellRenderer.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/ConsoleActionsCellRenderer.java
new file mode 100644
index 0000000000..dba02d6ef0
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/ConsoleActionsCellRenderer.java
@@ -0,0 +1,89 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import java.awt.Component;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.function.Consumer;
+import java.util.stream.Collectors;
+
+import javax.swing.*;
+
+import docking.widgets.table.GTableCellRenderingData;
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsoleProvider.ActionList;
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsoleProvider.BoundAction;
+import ghidra.docking.settings.Settings;
+import ghidra.util.table.column.AbstractGhidraColumnRenderer;
+
+public class ConsoleActionsCellRenderer extends AbstractGhidraColumnRenderer<ActionList> {
+
+ static void configureBox(JPanel box) {
+ box.setLayout(new BoxLayout(box, BoxLayout.X_AXIS));
+ box.setOpaque(true);
+ box.setAlignmentX(0.5f);
+ }
+
+ static void ensureCacheSize(List<JButton> buttonCache, int size,
+ Consumer<JButton> extraConfig) {
+ int diff = size - buttonCache.size();
+ for (int i = 0; i < diff; i++) {
+ JButton button = new JButton();
+ button.setMinimumSize(DebuggerConsoleProvider.ACTION_BUTTON_DIM);
+ button.setMaximumSize(DebuggerConsoleProvider.ACTION_BUTTON_DIM);
+ extraConfig.accept(button);
+ buttonCache.add(button);
+ }
+ }
+
+ static void populateBox(JPanel box, List<JButton> buttonCache, ActionList value,
+ Consumer<JButton> extraConfig) {
+ box.removeAll();
+ ensureCacheSize(buttonCache, value.size(), extraConfig);
+ int i = 0;
+ for (BoundAction a : value) {
+ JButton button = buttonCache.get(i);
+ button.setToolTipText(a.getTooltipText());
+ button.setIcon(a.getIcon());
+ button.setEnabled(a.isEnabled());
+ box.add(button);
+ i++;
+ }
+ }
+
+ protected final JPanel box = new JPanel();
+ protected final List<JButton> buttonCache = new ArrayList<>();
+
+ public ConsoleActionsCellRenderer() {
+ configureBox(box);
+ }
+
+ @Override
+ public String getFilterString(ActionList t, Settings settings) {
+ return t.stream().map(a -> a.getName()).collect(Collectors.joining(" "));
+ }
+
+ @Override
+ public Component getTableCellRendererComponent(GTableCellRenderingData data) {
+ super.getTableCellRendererComponent(data); // A bit of a waste, but sets the background
+ box.setBackground(getBackground());
+
+ ActionList value = (ActionList) data.getValue();
+ populateBox(box, buttonCache, value, button -> {
+ });
+ return box;
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsolePlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsolePlugin.java
new file mode 100644
index 0000000000..5fd781ca61
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsolePlugin.java
@@ -0,0 +1,130 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import javax.swing.Icon;
+
+import org.apache.logging.log4j.Level;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.core.LogEvent;
+import org.apache.logging.log4j.core.Logger;
+import org.apache.logging.log4j.core.appender.AbstractAppender;
+import org.apache.logging.log4j.core.config.Property;
+import org.apache.logging.log4j.core.filter.LevelRangeFilter;
+
+import docking.ActionContext;
+import docking.action.DockingActionIf;
+import ghidra.app.plugin.PluginCategoryNames;
+import ghidra.app.plugin.core.debug.DebuggerPluginPackage;
+import ghidra.app.services.DebuggerConsoleService;
+import ghidra.framework.plugintool.*;
+import ghidra.framework.plugintool.util.PluginStatus;
+
+@PluginInfo(
+ shortDescription = "Debugger console panel plugin",
+ description = "A tool-global console for controlling a debug/trace session",
+ category = PluginCategoryNames.DEBUGGER,
+ packageName = DebuggerPluginPackage.NAME,
+ status = PluginStatus.RELEASED,
+ servicesRequired = {},
+ servicesProvided = {
+ DebuggerConsoleService.class,
+ })
+public class DebuggerConsolePlugin extends Plugin implements DebuggerConsoleService {
+ protected static final String APPENDER_NAME = "debuggerAppender";
+
+ protected class ConsolePluginAppender extends AbstractAppender {
+
+ public ConsolePluginAppender() {
+ super(APPENDER_NAME, null, null, true, Property.EMPTY_ARRAY);
+
+ addFilter(LevelRangeFilter.createFilter(Level.FATAL, Level.INFO, null, null));
+ }
+
+ @Override
+ public void append(LogEvent event) {
+ String loggerName = event.getLoggerName();
+ if (loggerName.contains(".debug") ||
+ loggerName.contains(".dbg.") ||
+ loggerName.contains("agent.")) {
+ provider.logEvent(event);
+ }
+ }
+ }
+
+ protected DebuggerConsoleProvider provider;
+
+ protected final ConsolePluginAppender appender;
+
+ protected Logger rootLogger;
+
+ public DebuggerConsolePlugin(PluginTool tool) {
+ super(tool);
+
+ appender = new ConsolePluginAppender();
+ }
+
+ @Override
+ protected void init() {
+ super.init();
+ provider = new DebuggerConsoleProvider(this);
+
+ rootLogger = (Logger) LogManager.getRootLogger();
+ appender.start();
+ rootLogger.addAppender(appender);
+ }
+
+ @Override
+ protected void dispose() {
+ if (rootLogger != null) {
+ rootLogger.removeAppender(appender);
+ appender.stop();
+
+ provider.dispose();
+ tool.removeComponentProvider(provider);
+ }
+ super.dispose();
+ }
+
+ @Override
+ public void log(Icon icon, String message, ActionContext context) {
+ provider.log(icon, message, context);
+ }
+
+ @Override
+ public void remove(ActionContext context) {
+ provider.remove(context);
+ }
+
+ @Override
+ public void addResolutionAction(DockingActionIf action) {
+ provider.addResolutionAction(action);
+ }
+
+ @Override
+ public void removeResolutionAction(DockingActionIf action) {
+ provider.removeResolutionAction(action);
+ }
+
+ /**
+ * For testing: get the number of rows having a given class of action context
+ *
+ * @param ctxCls the context class
+ */
+ public long getRowCount(Class<? extends ActionContext> ctxCls) {
+ return provider.getRowCount(ctxCls);
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsoleProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsoleProvider.java
new file mode 100644
index 0000000000..6c0828b153
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsoleProvider.java
@@ -0,0 +1,487 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.event.MouseEvent;
+import java.util.*;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+
+import javax.swing.*;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.TableModelEvent;
+import javax.swing.table.*;
+
+import org.apache.logging.log4j.Level;
+import org.apache.logging.log4j.core.LogEvent;
+
+import docking.*;
+import docking.action.DockingAction;
+import docking.action.DockingActionIf;
+import docking.actions.PopupActionProvider;
+import docking.widgets.table.ColumnSortState.SortDirection;
+import docking.widgets.table.CustomToStringCellRenderer;
+import docking.widgets.table.DefaultEnumeratedColumnTableModel.EnumeratedTableColumn;
+import ghidra.app.plugin.core.debug.DebuggerPluginPackage;
+import ghidra.app.plugin.core.debug.gui.DebuggerResources;
+import ghidra.app.plugin.core.debug.gui.DebuggerResources.ClearAction;
+import ghidra.app.plugin.core.debug.gui.DebuggerResources.SelectNoneAction;
+import ghidra.app.plugin.core.debug.utils.DebouncedRowWrappedEnumeratedColumnTableModel;
+import ghidra.framework.options.AutoOptions;
+import ghidra.framework.options.annotation.*;
+import ghidra.framework.plugintool.AutoService;
+import ghidra.framework.plugintool.ComponentProviderAdapter;
+import ghidra.util.*;
+import ghidra.util.table.GhidraTable;
+import ghidra.util.table.GhidraTableFilterPanel;
+
+public class DebuggerConsoleProvider extends ComponentProviderAdapter
+ implements PopupActionProvider {
+ static final int ACTION_BUTTON_SIZE = 32;
+ static final Dimension ACTION_BUTTON_DIM =
+ new Dimension(ACTION_BUTTON_SIZE, ACTION_BUTTON_SIZE);
+ static final int MAX_ROW_HEIGHT = 300;
+
+ protected enum LogTableColumns implements EnumeratedTableColumn<LogTableColumns, LogRow> {
+ LEVEL("Level", Icon.class, LogRow::getIcon, SortDirection.ASCENDING, false),
+ MESSAGE("Message", String.class, LogRow::getMessage, SortDirection.ASCENDING, false),
+ ACTIONS("Actions", ActionList.class, LogRow::getActions, SortDirection.DESCENDING, true),
+ TIME("Time", Date.class, LogRow::getDate, SortDirection.DESCENDING, false);
+
+ private final String header;
+ private final Function<LogRow, ?> getter;
+ private final Class<?> cls;
+ private final SortDirection defaultSortDirection;
+ private final boolean editable;
+
+ <T> LogTableColumns(String header, Class<T> cls, Function<LogRow, T> getter,
+ SortDirection defaultSortDirection, boolean editable) {
+ this.header = header;
+ this.cls = cls;
+ this.getter = getter;
+ this.defaultSortDirection = defaultSortDirection;
+ this.editable = editable;
+ }
+
+ @Override
+ public String getHeader() {
+ return header;
+ }
+
+ @Override
+ public Class<?> getValueClass() {
+ return cls;
+ }
+
+ @Override
+ public Object getValueOf(LogRow row) {
+ return getter.apply(row);
+ }
+
+ @Override
+ public boolean isEditable(LogRow row) {
+ return editable;
+ }
+
+ @Override
+ public void setValueOf(LogRow row, Object value) {
+ }
+
+ @Override
+ public SortDirection defaultSortDirection() {
+ return defaultSortDirection;
+ }
+ }
+
+ protected static class BoundAction {
+ protected final DockingActionIf action;
+ protected final ActionContext context;
+
+ public BoundAction(DockingActionIf action, ActionContext context) {
+ this.action = action;
+ this.context = context;
+ }
+
+ @Override
+ public String toString() {
+ return getName();
+ }
+
+ public String getName() {
+ return action.getName();
+ }
+
+ public Icon getIcon() {
+ return action.getToolBarData().getIcon();
+ }
+
+ public boolean isEnabled() {
+ return action.isEnabledForContext(context);
+ }
+
+ public String getTooltipText() {
+ return action.getDescription();
+ }
+
+ public void perform() {
+ action.actionPerformed(context);
+ }
+ }
+
+ protected static class ActionList extends ArrayList<BoundAction> {
+ }
+
+ protected static class LogRow {
+ private final Icon icon;
+ private final String message;
+ private final Date date;
+ private final ActionContext context;
+ private final ActionList actions;
+
+ public LogRow(Icon icon, String message, Date date, ActionContext context,
+ ActionList actions) {
+ this.icon = icon;
+ this.message = message;
+ this.date = date;
+ this.context = context;
+ this.actions = actions;
+ }
+
+ public Icon getIcon() {
+ return icon;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public ActionContext getActionContext() {
+ return context;
+ }
+
+ public ActionList getActions() {
+ return actions;
+ }
+ }
+
+ protected static class LogTableModel extends DebouncedRowWrappedEnumeratedColumnTableModel< //
+ LogTableColumns, ActionContext, LogRow, LogRow> {
+
+ public LogTableModel() {
+ super("Log", LogTableColumns.class, r -> r.getActionContext(), r -> r);
+ }
+
+ @Override
+ public java.util.List<LogTableColumns> defaultSortOrder() {
+ return java.util.List.of(LogTableColumns.ACTIONS, LogTableColumns.TIME);
+ }
+ }
+
+ protected static class LogTable extends GhidraTable {
+
+ public LogTable(LogTableModel model) {
+ super(model);
+ }
+
+ @Override
+ public void tableChanged(TableModelEvent e) {
+ super.tableChanged(e);
+ Swing.runIfSwingOrRunLater(() -> updateRowHeights());
+ }
+
+ @Override
+ public void columnMarginChanged(ChangeEvent e) {
+ super.columnMarginChanged(e);
+ // TODO: Debounce or otherwise delay this
+ Swing.runIfSwingOrRunLater(() -> updateRowHeights());
+ }
+
+ protected void updateRowHeights() {
+ // TODO: Be more selective in which rows
+ // Those changed
+ // Those visible?
+ TableModel model = getModel();
+ int rows = model.getRowCount();
+ int cols = getColumnCount();
+ for (int r = 0; r < rows; r++) {
+ int height = 0;
+ for (int c = 0; c < cols; c++) {
+ height = Math.max(height, computePreferredHeight(r, c));
+ }
+ setRowHeight(r, height);
+ }
+ }
+
+ protected int computePreferredHeight(int r, int c) {
+ TableCellRenderer renderer = getCellRenderer(r, c);
+ if (renderer instanceof ConsoleActionsCellRenderer) {
+ ActionList actions = (ActionList) getModel().getValueAt(r, c);
+ if (!actions.isEmpty()) {
+ return ACTION_BUTTON_SIZE;
+ }
+ return 0;
+ }
+ if (renderer instanceof CustomToStringCellRenderer<?>) {
+ CustomToStringCellRenderer<?> custom = (CustomToStringCellRenderer<?>) renderer;
+ int colWidth = getColumnModel().getColumn(c).getWidth();
+ prepareRenderer(renderer, r, c);
+ return custom.getRowHeight(colWidth);
+ }
+ return 0;
+ }
+ }
+
+ private final DebuggerConsolePlugin plugin;
+
+ @SuppressWarnings("unused")
+ private final AutoService.Wiring autoServiceWiring;
+
+ @AutoOptionDefined(
+ name = DebuggerResources.OPTION_NAME_LOG_BUFFER_LIMIT,
+ description = "The maximum number of entries in the console log (0 or less for unlimited)",
+ help = @HelpInfo(anchor = "buffer_limit"))
+ private int logBufferLimit = DebuggerResources.DEFAULT_LOG_BUFFER_LIMIT;
+ @SuppressWarnings("unused")
+ private final AutoOptions.Wiring autoOptionsWiring;
+
+ protected final Map<String, Map<String, DockingActionIf>> actionsByOwnerThenName =
+ new LinkedHashMap<>();
+
+ protected final LogTableModel logTableModel = new LogTableModel();
+ protected GhidraTable logTable;
+ private GhidraTableFilterPanel<LogRow> logFilterPanel;
+
+ private Deque<LogRow> buffer = new ArrayDeque<>();
+
+ private final JPanel mainPanel = new JPanel(new BorderLayout());
+
+ DockingAction actionClear;
+ DockingAction actionSelectNone;
+
+ public DebuggerConsoleProvider(DebuggerConsolePlugin plugin) {
+ super(plugin.getTool(), DebuggerResources.TITLE_PROVIDER_CONSOLE, plugin.getName());
+ this.plugin = plugin;
+
+ tool.addPopupActionProvider(this);
+
+ setIcon(DebuggerResources.ICON_PROVIDER_CONSOLE);
+ setHelpLocation(DebuggerResources.HELP_PROVIDER_CONSOLE);
+ setWindowMenuGroup(DebuggerPluginPackage.NAME);
+
+ buildMainPanel();
+
+ this.autoServiceWiring = AutoService.wireServicesConsumed(plugin, this);
+ this.autoOptionsWiring = AutoOptions.wireOptions(plugin, this);
+
+ setDefaultWindowPosition(WindowPosition.BOTTOM);
+ setVisible(true);
+ createActions();
+ }
+
+ protected void dispose() {
+ tool.removePopupActionProvider(this);
+ }
+
+ protected void buildMainPanel() {
+ logTable = new LogTable(logTableModel);
+ logTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
+ mainPanel.add(new JScrollPane(logTable));
+ logFilterPanel = new GhidraTableFilterPanel<>(logTable, logTableModel);
+ mainPanel.add(logFilterPanel, BorderLayout.NORTH);
+
+ logTable.setRowHeight(ACTION_BUTTON_SIZE);
+ TableColumnModel columnModel = logTable.getColumnModel();
+
+ TableColumn levelCol = columnModel.getColumn(LogTableColumns.LEVEL.ordinal());
+ levelCol.setMaxWidth(24);
+ levelCol.setMinWidth(24);
+
+ TableColumn msgCol = columnModel.getColumn(LogTableColumns.MESSAGE.ordinal());
+ msgCol.setPreferredWidth(150);
+ msgCol.setCellRenderer(CustomToStringCellRenderer.HTML);
+
+ TableColumn actCol = columnModel.getColumn(LogTableColumns.ACTIONS.ordinal());
+ actCol.setPreferredWidth(50);
+ actCol.setCellRenderer(new ConsoleActionsCellRenderer());
+ actCol.setCellEditor(new ConsoleActionsCellEditor());
+
+ TableColumn timeCol = columnModel.getColumn(LogTableColumns.TIME.ordinal());
+ timeCol.setCellRenderer(CustomToStringCellRenderer.TIME_24HMSms);
+ timeCol.setPreferredWidth(15);
+ }
+
+ protected void createActions() {
+ actionClear = ClearAction.builder(plugin)
+ .onAction(this::activatedClear)
+ .buildAndInstallLocal(this);
+ actionSelectNone = SelectNoneAction.builder(plugin)
+ .popupWhen(ctx -> ctx.getSourceComponent() == logTable)
+ .onAction(this::activatedSelectNone)
+ .buildAndInstallLocal(this);
+ }
+
+ private void activatedClear(ActionContext ctx) {
+ synchronized (buffer) {
+ logTableModel.clear();
+ buffer.clear();
+ }
+ }
+
+ private void activatedSelectNone(ActionContext ctx) {
+ logTable.clearSelection();
+ }
+
+ @Override
+ public ActionContext getActionContext(MouseEvent event) {
+ if (logTable.getSelectedRowCount() != 1) {
+ return super.getActionContext(event);
+ }
+ LogRow sel = logFilterPanel.getSelectedItem();
+ if (sel == null) {
+ // I guess this can happen because of timing?
+ return super.getActionContext(event);
+ }
+ return sel.getActionContext();
+ }
+
+ @AutoOptionConsumed(name = DebuggerResources.OPTION_NAME_LOG_BUFFER_LIMIT)
+ private void setLogBufferLimit(int logBufferLimit) {
+ truncateLog();
+ }
+
+ @Override
+ public JComponent getComponent() {
+ return mainPanel;
+ }
+
+ protected void truncateLog() {
+ synchronized (buffer) {
+ while (logBufferLimit > 0 && buffer.size() > logBufferLimit) {
+ logTableModel.deleteItem(buffer.removeFirst());
+ }
+ }
+ }
+
+ protected void log(Icon icon, String message, ActionContext context) {
+ logRow(new LogRow(icon, message, new Date(), context, computeToolbarActions(context)));
+ }
+
+ protected void logRow(LogRow row) {
+ synchronized (buffer) {
+ LogRow old = logTableModel.deleteKey(row.getActionContext());
+ if (old != null) {
+ buffer.remove(old);
+ }
+ logTableModel.addItem(row);
+ buffer.addLast(row);
+ truncateLog();
+ }
+ //logTable.scrollRectToVisible(new Rectangle(0, Integer.MAX_VALUE - 1, 1, 1));
+ }
+
+ protected Icon iconForLevel(Level level) {
+ if (level == Level.FATAL) {
+ return DebuggerResources.ICON_LOG_FATAL;
+ }
+ else if (level == Level.ERROR) {
+ return DebuggerResources.ICON_LOG_ERROR;
+ }
+ else if (level == Level.WARN) {
+ return DebuggerResources.ICON_LOG_WARN;
+ }
+ return null;
+ }
+
+ protected void logEvent(LogEvent event) {
+ ActionContext context = new LogRowConsoleActionContext();
+ logRow(new LogRow(iconForLevel(event.getLevel()),
+ "<html>" + HTMLUtilities.escapeHTML(event.getMessage().getFormattedMessage()),
+ new Date(event.getTimeMillis()), context, computeToolbarActions(context)));
+ }
+
+ protected void remove(ActionContext context) {
+ synchronized (buffer) {
+ LogRow r = logTableModel.deleteKey(context);
+ buffer.remove(r);
+ }
+ }
+
+ protected void addResolutionAction(DockingActionIf action) {
+ DockingActionIf replaced =
+ actionsByOwnerThenName.computeIfAbsent(action.getOwner(), o -> new LinkedHashMap<>())
+ .put(action.getName(), action);
+ if (replaced != null) {
+ Msg.warn(this, "Duplicate resolution action registered: " + action.getFullName());
+ }
+ }
+
+ protected void removeResolutionAction(DockingActionIf action) {
+ Map<String, DockingActionIf> byName = actionsByOwnerThenName.get(action.getOwner());
+ if (byName == null) {
+ Msg.warn(this, "Action to remove was never added: " + action.getFullName());
+ return;
+ }
+ DockingActionIf removed = byName.get(action.getName());
+ if (removed != action) {
+ if (removed != null) {
+ Msg.warn(this,
+ "Action to remove did not match that added: " + action.getFullName());
+ }
+ else {
+ Msg.warn(this, "Action to removed was never added: " + action.getFullName());
+ }
+ return;
+ }
+ if (byName.isEmpty()) {
+ actionsByOwnerThenName.remove(action.getOwner());
+ }
+ }
+
+ protected Stream<DockingActionIf> streamActions(ActionContext context) {
+ return actionsByOwnerThenName.values()
+ .stream()
+ .flatMap(m -> m.values().stream())
+ .filter(a -> a.isValidContext(context));
+ }
+
+ protected ActionList computeToolbarActions(ActionContext context) {
+ return streamActions(context)
+ .filter(a -> a.getToolBarData() != null)
+ .map(a -> new BoundAction(a, context))
+ .collect(Collectors.toCollection(ActionList::new));
+ }
+
+ @Override
+ public java.util.List<DockingActionIf> getPopupActions(Tool tool, ActionContext context) {
+ return streamActions(context)
+ .filter(a -> a.isAddToPopup(context))
+ .collect(Collectors.toList());
+ }
+
+ protected long getRowCount(Class<? extends ActionContext> ctxCls) {
+ return logTableModel.getModelData()
+ .stream()
+ .filter(r -> ctxCls.isInstance(r.context))
+ .count();
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/LogRowConsoleActionContext.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/LogRowConsoleActionContext.java
new file mode 100644
index 0000000000..db0658b1c0
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/console/LogRowConsoleActionContext.java
@@ -0,0 +1,22 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import docking.ActionContext;
+
+public class LogRowConsoleActionContext extends ActionContext {
+
+}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/interpreters/DebuggerInterpreterPlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/interpreters/DebuggerInterpreterPlugin.java
index 21fa362e84..3e09ff8168 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/interpreters/DebuggerInterpreterPlugin.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/interpreters/DebuggerInterpreterPlugin.java
@@ -31,19 +31,18 @@ import ghidra.framework.plugintool.PluginTool;
import ghidra.framework.plugintool.annotation.AutoServiceConsumed;
import ghidra.framework.plugintool.util.PluginStatus;
-@PluginInfo( //
- shortDescription = "Debugger interpreter panel service", //
- description = "Manage interpreter panels within debug sessions", //
- category = PluginCategoryNames.DEBUGGER, //
- packageName = DebuggerPluginPackage.NAME, //
- status = PluginStatus.RELEASED, //
- servicesRequired = { //
- InterpreterPanelService.class //
- }, //
+@PluginInfo(
+ shortDescription = "Debugger interpreter panel service",
+ description = "Manage interpreter panels within debug sessions",
+ category = PluginCategoryNames.DEBUGGER,
+ packageName = DebuggerPluginPackage.NAME,
+ status = PluginStatus.RELEASED,
+ servicesRequired = {
+ InterpreterPanelService.class,
+ },
servicesProvided = {
- DebuggerInterpreterService.class //
- } //
-)
+ DebuggerInterpreterService.class,
+ })
public class DebuggerInterpreterPlugin extends AbstractDebuggerPlugin
implements DebuggerInterpreterService {
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java
index f4ff8ca1b3..39dd501520 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPlugin.java
@@ -342,7 +342,7 @@ public class DebuggerListingPlugin extends CodeBrowserPlugin implements Debugger
//cbGoTo.invoke(() -> {
DebuggerListingProvider provider = getConnectedProvider();
provider.doSyncToStatic(location);
- provider.doAutoImportCurrentModule();
+ provider.doCheckCurrentModuleMissing();
//});
return true;
}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java
index 932fc64903..cdc6637163 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProvider.java
@@ -19,7 +19,6 @@ import static ghidra.app.plugin.core.debug.gui.DebuggerResources.ICON_REGISTER_M
import static ghidra.app.plugin.core.debug.gui.DebuggerResources.OPTION_NAME_COLORS_REGISTER_MARKERS;
import java.awt.Color;
-import java.io.File;
import java.lang.invoke.MethodHandles;
import java.util.*;
import java.util.concurrent.CompletableFuture;
@@ -50,6 +49,7 @@ import ghidra.app.plugin.core.debug.gui.DebuggerResources.*;
import ghidra.app.plugin.core.debug.gui.action.*;
import ghidra.app.plugin.core.debug.gui.action.AutoReadMemorySpec.AutoReadMemorySpecConfigFieldCodec;
import ghidra.app.plugin.core.debug.gui.action.LocationTrackingSpec.TrackingSpecConfigFieldCodec;
+import ghidra.app.plugin.core.debug.gui.modules.DebuggerMissingModuleActionContext;
import ghidra.app.plugin.core.debug.utils.BackgroundUtils;
import ghidra.app.plugin.core.debug.utils.ProgramURLUtils;
import ghidra.app.plugin.core.exporter.ExporterDialog;
@@ -85,8 +85,7 @@ import ghidra.trace.model.stack.TraceStack;
import ghidra.trace.model.thread.TraceThread;
import ghidra.trace.model.time.TraceSnapshot;
import ghidra.trace.util.TraceAddressSpace;
-import ghidra.util.Msg;
-import ghidra.util.Swing;
+import ghidra.util.*;
import utilities.util.SuppressableCallback;
import utilities.util.SuppressableCallback.Suppression;
@@ -323,6 +322,8 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
//@AutoServiceConsumed via method
private DebuggerStaticMappingService mappingService;
@AutoServiceConsumed
+ private DebuggerConsoleService consoleService;
+ @AutoServiceConsumed
private ProgramManager programManager;
@AutoServiceConsumed
private FileImporterService importerService;
@@ -349,12 +350,10 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
protected MultiStateDockingAction<LocationTrackingSpec> actionTrackLocation;
protected DockingAction actionGoTo;
protected SyncToStaticListingAction actionSyncToStaticListing;
- protected ToggleDockingAction actionAutoImportCurrentModule;
protected FollowsCurrentThreadAction actionFollowsCurrentThread;
protected MultiStateDockingAction<AutoReadMemorySpec> actionAutoReadMemory;
protected DockingAction actionExportView;
- protected final DebuggerModuleImportDialog importDialog;
protected final DebuggerGoToDialog goToDialog;
@AutoConfigStateField(codec = TrackingSpecConfigFieldCodec.class)
@@ -362,8 +361,6 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
@AutoConfigStateField
protected boolean syncToStaticListing;
@AutoConfigStateField
- protected boolean autoImportCurrentModule;
- @AutoConfigStateField
protected boolean followsCurrentThread = true;
@AutoConfigStateField(codec = AutoReadMemorySpecConfigFieldCodec.class)
protected AutoReadMemorySpec autoReadMemorySpec = defaultReadMemorySpec;
@@ -389,7 +386,6 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
super(plugin, formatManager, isConnected);
this.plugin = plugin;
- importDialog = new DebuggerModuleImportDialog(tool);
goToDialog = new DebuggerGoToDialog(this);
ListingPanel listingPanel = getListingPanel();
@@ -403,7 +399,6 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
autoOptionsWiring = AutoOptions.wireOptionsConsumed(plugin, this);
syncToStaticListing = isConnected;
- autoImportCurrentModule = isConnected;
setVisible(true);
createActions();
@@ -473,12 +468,10 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
actionTrackLocation.setCurrentActionStateByUserData(trackingSpec);
if (isConnected()) {
actionSyncToStaticListing.setSelected(syncToStaticListing);
- actionAutoImportCurrentModule.setSelected(autoImportCurrentModule);
followsCurrentThread = true;
}
else {
syncToStaticListing = false;
- autoImportCurrentModule = false;
actionFollowsCurrentThread.setSelected(followsCurrentThread);
updateBorder();
}
@@ -744,11 +737,6 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
if (isConnected()) {
actionSyncToStaticListing = new SyncToStaticListingAction();
- actionAutoImportCurrentModule = AutoImportCurrentModuleAction.builder(plugin)
- .enabledWhen(ctx -> syncToStaticListing)
- .onAction(this::autoImportCurrentModuleActionToggled)
- .selected(autoImportCurrentModule)
- .buildAndInstallLocal(this);
}
else {
actionFollowsCurrentThread = new FollowsCurrentThreadAction();
@@ -803,10 +791,6 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
doSetTrackingSpec(newState.getUserData());
}
- protected void autoImportCurrentModuleActionToggled(ActionContext ctx) {
- doSetAutoImportCurrentModule(actionAutoImportCurrentModule.isSelected());
- }
-
protected void activatedAutoReadMemory(ActionContext ctx) {
doAutoReadMemory();
}
@@ -891,7 +875,7 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
super.programLocationChanged(location, trigger);
if (trigger == EventTrigger.GUI_ACTION) {
doSyncToStatic(location);
- doAutoImportCurrentModule();
+ doCheckCurrentModuleMissing();
}
}
@@ -928,11 +912,8 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
}
}
- protected void doAutoImportCurrentModule() {
- if (!autoImportCurrentModule) {
- return;
- }
- if (importerService == null) {
+ protected void doCheckCurrentModuleMissing() {
+ if (importerService == null || consoleService == null) {
return;
}
Trace trace = current.getTrace();
@@ -962,8 +943,8 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
}
}
- Map<TraceModule, File> missing = new LinkedHashMap<>();
- Set<DomainFile> toOpen = new LinkedHashSet<>();
+ Set<TraceModule> missing = new HashSet<>();
+ Set<DomainFile> toOpen = new HashSet<>();
TraceModuleManager modMan = trace.getModuleManager();
Collection<TraceModule> modules = Stream.concat(
modMan.getModulesAt(snap, address).stream().filter(m -> m.getSections().isEmpty()),
@@ -975,7 +956,7 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
for (TraceModule mod : modules) {
Set<DomainFile> matches = mappingService.findProbableModulePrograms(mod);
if (matches.isEmpty()) {
- missing.put(mod, new File(mod.getName()));
+ missing.add(mod);
}
else {
toOpen.addAll(matches);
@@ -988,7 +969,12 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
ProgramManager.OPEN_VISIBLE);
}
}
- importDialog.addFiles(missing.values());
+ for (TraceModule mod : missing) {
+ consoleService.log(DebuggerResources.ICON_LOG_ERROR,
+ "<html>The module <b><tt>" + HTMLUtilities.escapeHTML(mod.getName()) +
+ "</tt></b> was not found in the project",
+ new DebuggerMissingModuleActionContext(mod));
+ }
/**
* Once the programs are opened, including those which are successfully imported, the
* section mapper should take over, eventually invoking callbacks to our mapping change
@@ -1027,11 +1013,6 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
doSyncToStatic(getLocation());
}
- protected void doSetAutoImportCurrentModule(boolean autoImport) {
- this.autoImportCurrentModule = autoImport;
- doAutoImportCurrentModule();
- }
-
public boolean isSyncToStaticListing() {
return syncToStaticListing;
}
@@ -1117,13 +1098,13 @@ public class DebuggerListingProvider extends CodeViewerProvider implements Listi
if (!syncToStaticListing || trackedStatic == null) {
Swing.runIfSwingOrRunLater(() -> {
goTo(curView, loc);
- doAutoImportCurrentModule();
+ doCheckCurrentModuleMissing();
});
}
else {
Swing.runIfSwingOrRunLater(() -> {
goTo(curView, loc);
- doAutoImportCurrentModule();
+ doCheckCurrentModuleMissing();
plugin.fireStaticLocationEvent(trackedStatic);
});
}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerModuleImportDialog.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerModuleImportDialog.java
deleted file mode 100644
index 870984f473..0000000000
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerModuleImportDialog.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/* ###
- * IP: GHIDRA
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package ghidra.app.plugin.core.debug.gui.listing;
-
-import java.awt.BorderLayout;
-import java.io.File;
-import java.util.*;
-import java.util.function.BiConsumer;
-import java.util.function.Function;
-
-import javax.swing.*;
-import javax.swing.table.TableColumn;
-import javax.swing.table.TableColumnModel;
-
-import docking.DialogComponentProvider;
-import docking.widgets.filechooser.GhidraFileChooser;
-import docking.widgets.table.CellEditorUtils;
-import docking.widgets.table.DefaultEnumeratedColumnTableModel;
-import docking.widgets.table.DefaultEnumeratedColumnTableModel.EnumeratedTableColumn;
-import ghidra.app.plugin.core.debug.gui.DebuggerResources;
-import ghidra.app.services.FileImporterService;
-import ghidra.framework.main.AppInfo;
-import ghidra.framework.model.DomainFolder;
-import ghidra.framework.model.Project;
-import ghidra.framework.plugintool.PluginTool;
-import ghidra.util.MessageType;
-import ghidra.util.table.GhidraTable;
-import ghidra.util.table.GhidraTableFilterPanel;
-
-public class DebuggerModuleImportDialog extends DialogComponentProvider {
- static final String BLANK = "";
- static final int BUTTON_SIZE = 32;
-
- protected static class FileRow {
- private final File file;
- private boolean isIgnored;
-
- public FileRow(File file) {
- this.file = file;
- }
-
- public File getFile() {
- return file;
- }
-
- public boolean isIgnored() {
- return isIgnored;
- }
-
- public void setIgnored(boolean isIgnored) {
- this.isIgnored = isIgnored;
- }
- }
-
- protected static enum FileTableColumns
- implements EnumeratedTableColumn<FileTableColumns, FileRow> {
- REMOVE("Remove", String.class, m -> BLANK, (m, v) -> nop()),
- IGNORE("Ignore", Boolean.class, FileRow::isIgnored, FileRow::setIgnored),
- PATH("Path", File.class, FileRow::getFile),
- IMPORT("Import", String.class, m -> BLANK, (m, v) -> nop());
-
- private String header;
- private Class<?> cls;
- private Function<FileRow, ?> getter;
- private BiConsumer<FileRow, Object> setter;
-
- private static void nop() {
- }
-
- @SuppressWarnings("unchecked")
- <T> FileTableColumns(String header, Class<T> cls,
- Function<FileRow, T> getter, BiConsumer<FileRow, T> setter) {
- this.header = header;
- this.cls = cls;
- this.getter = getter;
- this.setter = (BiConsumer<FileRow, Object>) setter;
- }
-
- <T> FileTableColumns(String header, Class<T> cls,
- Function<FileRow, T> getter) {
- this(header, cls, getter, null);
- }
-
- @Override
- public String getHeader() {
- return header;
- }
-
- @Override
- public Class<?> getValueClass() {
- return cls;
- }
-
- @Override
- public Object getValueOf(FileRow row) {
- return getter.apply(row);
- }
-
- @Override
- public boolean isEditable(FileRow row) {
- return setter != null;
- }
-
- @Override
- public void setValueOf(FileRow row, Object value) {
- setter.accept(row, value);
- }
- }
-
- protected static class FileTableModel
- extends DefaultEnumeratedColumnTableModel<FileTableColumns, FileRow> {
- public FileTableModel() {
- super("Suggested Files to Import", FileTableColumns.class);
- }
- }
-
- private final PluginTool tool;
-
- final FileTableModel fileTableModel = new FileTableModel();
- private final Map<File, FileRow> map = new HashMap<>();
-
- private GhidraTable fileTable;
- private GhidraTableFilterPanel<FileRow> fileFilterPanel;
-
- protected DebuggerModuleImportDialog(PluginTool tool) {
- super("Suggested Modules to Import", false, true, false, false);
- this.tool = tool;
-
- populateComponents();
- }
-
- protected void populateComponents() {
- JPanel panel = new JPanel(new BorderLayout());
-
- fileTable = new GhidraTable(fileTableModel);
- fileTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
- panel.add(new JScrollPane(fileTable));
-
- fileFilterPanel = new GhidraTableFilterPanel<>(fileTable, fileTableModel);
- panel.add(fileFilterPanel, BorderLayout.SOUTH);
-
- TableColumnModel columnModel = fileTable.getColumnModel();
-
- TableColumn removeCol = columnModel.getColumn(FileTableColumns.REMOVE.ordinal());
- CellEditorUtils.installButton(fileTable, fileFilterPanel, removeCol,
- DebuggerResources.ICON_DELETE, BUTTON_SIZE, this::removeFile);
-
- TableColumn ignoreCol = columnModel.getColumn(FileTableColumns.IGNORE.ordinal());
- ignoreCol.setPreferredWidth(30);
-
- TableColumn importCol = columnModel.getColumn(FileTableColumns.IMPORT.ordinal());
- CellEditorUtils.installButton(fileTable, fileFilterPanel, importCol,
- DebuggerResources.ICON_IMPORT, BUTTON_SIZE, this::importFile);
-
- addWorkPanel(panel);
- }
-
- private void importFile(FileRow mod) {
- FileImporterService importerService = tool.getService(FileImporterService.class);
- if (importerService == null) {
- setStatusText("No FileImporterService!", MessageType.ERROR);
- return;
- }
- GhidraFileChooser chooser = new GhidraFileChooser(getComponent());
- chooser.setSelectedFile(mod.getFile());
- File file = chooser.getSelectedFile(); // Shows modal
- if (file == null) { // Includes cancelled case
- return;
- }
- Project activeProject = Objects.requireNonNull(AppInfo.getActiveProject());
- DomainFolder root = activeProject.getProjectData().getRootFolder();
- importerService.importFile(root, file);
- removeFile(mod);
- }
-
- private void removeFile(FileRow mod) {
- removeFiles(Set.of(mod.getFile()));
- }
-
- public void show() {
- tool.showDialog(this);
- }
-
- /**
- * Suggest files to import.
- *
- * <p>
- * If this causes a change to the suggested file list, or the list is not currently showing, the
- * dialog will be shown. The user may leave the list in the background to avoid being pestered
- * again.
- *
- * @param files the collection of files to suggest importing
- */
- public void addFiles(Collection<File> files) {
- synchronized (map) {
- List<FileRow> mods = new ArrayList<>();
- for (File file : files) {
- map.computeIfAbsent(file, f -> {
- FileRow mod = new FileRow(f);
- mods.add(mod);
- return mod;
- });
- }
- fileTableModel.addAll(mods);
- // Do not steal focus if suggested files are already on screen, or ignored
- boolean anyNotIgnored =
- fileTableModel.getModelData().stream().anyMatch(r -> !r.isIgnored());
- if (!mods.isEmpty() || (!isShowing() && anyNotIgnored)) {
- show();
- }
- }
- }
-
- /**
- * Remove suggested files from the dialog.
- *
- * <p>
- * If this causes the list to become empty, the dialog is automatically hidden.
- *
- * @param files the collection of files to no longer suggest
- */
- public void removeFiles(Collection<File> files) {
- synchronized (map) {
- Set<FileRow> mods = new HashSet<>();
- for (File file : files) {
- FileRow mod = map.remove(file);
- if (mod != null) {
- mods.add(mod);
- }
- }
- fileTableModel.deleteWith(mods::contains);
-
- if (fileTableModel.getModelData().isEmpty()) {
- close();
- }
- }
- }
-}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerMissingModuleActionContext.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerMissingModuleActionContext.java
new file mode 100644
index 0000000000..86c31cc0fb
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerMissingModuleActionContext.java
@@ -0,0 +1,55 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.modules;
+
+import java.util.Objects;
+
+import docking.ActionContext;
+import ghidra.trace.model.modules.TraceModule;
+
+public class DebuggerMissingModuleActionContext extends ActionContext {
+ private final TraceModule module;
+ private final int hashCode;
+
+ public DebuggerMissingModuleActionContext(TraceModule module) {
+ this.module = Objects.requireNonNull(module);
+ this.hashCode = Objects.hash(getClass(), module);
+ }
+
+ public TraceModule getModule() {
+ return module;
+ }
+
+ @Override
+ public int hashCode() {
+ return hashCode;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (!(obj instanceof DebuggerMissingModuleActionContext)) {
+ return false;
+ }
+ DebuggerMissingModuleActionContext that = (DebuggerMissingModuleActionContext) obj;
+ if (!this.module.equals(that.module)) {
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesPlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesPlugin.java
index cdf0674a13..4bd84e7aea 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesPlugin.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesPlugin.java
@@ -25,23 +25,23 @@ import ghidra.framework.plugintool.*;
import ghidra.framework.plugintool.util.PluginStatus;
@PluginInfo( //
- shortDescription = "Debugger module and section manager", //
- description = "GUI to manage modules and sections", //
- category = PluginCategoryNames.DEBUGGER, //
- packageName = DebuggerPluginPackage.NAME, //
- status = PluginStatus.RELEASED, //
- eventsConsumed = {
- ProgramActivatedPluginEvent.class, //
- ProgramLocationPluginEvent.class, //
- ProgramClosedPluginEvent.class, //
- TraceActivatedPluginEvent.class, //
- }, //
- servicesRequired = { //
- DebuggerModelService.class, //
- DebuggerStaticMappingService.class, //
- DebuggerTraceManagerService.class, //
- ProgramManager.class, //
- } //
+ shortDescription = "Debugger module and section manager", //
+ description = "GUI to manage modules and sections", //
+ category = PluginCategoryNames.DEBUGGER, //
+ packageName = DebuggerPluginPackage.NAME, //
+ status = PluginStatus.RELEASED, //
+ eventsConsumed = {
+ ProgramActivatedPluginEvent.class, //
+ ProgramLocationPluginEvent.class, //
+ ProgramClosedPluginEvent.class, //
+ TraceActivatedPluginEvent.class, //
+ }, //
+ servicesRequired = { //
+ DebuggerModelService.class, //
+ DebuggerStaticMappingService.class, //
+ DebuggerTraceManagerService.class, //
+ ProgramManager.class, //
+ } //
)
public class DebuggerModulesPlugin extends AbstractDebuggerPlugin {
protected DebuggerModulesProvider provider;
@@ -58,6 +58,7 @@ public class DebuggerModulesPlugin extends AbstractDebuggerPlugin {
@Override
protected void dispose() {
+ provider.dispose();
tool.removeComponentProvider(provider);
super.dispose();
}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProvider.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProvider.java
index 146041c632..a7cfc0bd23 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProvider.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/modules/DebuggerModulesProvider.java
@@ -458,15 +458,7 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
return;
}
TraceModule mod = modules.iterator().next();
- GhidraFileChooser chooser = new GhidraFileChooser(getComponent());
- chooser.setSelectedFile(new File(mod.getName()));
- File file = chooser.getSelectedFile();
- if (file == null) { // Perhaps cancelled
- return;
- }
- Project activeProject = Objects.requireNonNull(AppInfo.getActiveProject());
- DomainFolder root = activeProject.getProjectData().getRootFolder();
- importerService.importFile(root, file);
+ importModuleFromFileSystem(mod);
}
@Override
@@ -508,6 +500,8 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
@AutoServiceConsumed
private DebuggerListingService listingService;
@AutoServiceConsumed
+ private DebuggerConsoleService consoleService;
+ @AutoServiceConsumed
ProgramManager programManager;
@AutoServiceConsumed
private GoToService goToService;
@@ -551,6 +545,9 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
DockingAction actionMapSectionTo;
DockingAction actionMapSectionsTo;
+ DockingAction actionImportMissingModule;
+ DockingAction actionMapMissingModule;
+
SelectAddressesAction actionSelectAddresses;
CaptureTypesAction actionCaptureTypes;
CaptureSymbolsAction actionCaptureSymbols;
@@ -580,6 +577,18 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
createActions();
}
+ private void importModuleFromFileSystem(TraceModule module) {
+ GhidraFileChooser chooser = new GhidraFileChooser(getComponent());
+ chooser.setSelectedFile(new File(module.getName()));
+ File file = chooser.getSelectedFile();
+ if (file == null) { // Perhaps cancelled
+ return;
+ }
+ Project activeProject = Objects.requireNonNull(AppInfo.getActiveProject());
+ DomainFolder root = activeProject.getProjectData().getRootFolder();
+ importerService.importFile(root, file);
+ }
+
@AutoServiceConsumed
private void setModelService(DebuggerModelService modelService) {
if (this.modelService != null) {
@@ -592,6 +601,29 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
contextChanged();
}
+ @AutoServiceConsumed
+ private void setConsoleService(DebuggerConsoleService consoleService) {
+ if (consoleService != null) {
+ if (actionImportMissingModule != null) {
+ consoleService.addResolutionAction(actionImportMissingModule);
+ }
+ if (actionMapMissingModule != null) {
+ consoleService.addResolutionAction(actionMapMissingModule);
+ }
+ }
+ }
+
+ protected void dispose() {
+ if (consoleService != null) {
+ if (actionImportMissingModule != null) {
+ consoleService.removeResolutionAction(actionImportMissingModule);
+ }
+ if (actionMapMissingModule != null) {
+ consoleService.removeResolutionAction(actionMapMissingModule);
+ }
+ }
+ }
+
@Override
public ActionContext getActionContext(MouseEvent event) {
if (myActionContext == null) {
@@ -743,6 +775,15 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
.onAction(this::activatedMapSectionsTo)
.buildAndInstallLocal(this);
+ actionImportMissingModule = ImportMissingModuleAction.builder(plugin)
+ .withContext(DebuggerMissingModuleActionContext.class)
+ .onAction(this::activatedImportMissingModule)
+ .build();
+ actionMapMissingModule = MapMissingModuleAction.builder(plugin)
+ .withContext(DebuggerMissingModuleActionContext.class)
+ .onAction(this::activatedMapMissingModule)
+ .build();
+
actionSelectAddresses = new SelectAddressesAction();
actionCaptureTypes = new CaptureTypesAction();
actionCaptureSymbols = new CaptureSymbolsAction();
@@ -818,6 +859,19 @@ public class DebuggerModulesProvider extends ComponentProviderAdapter {
mapSectionTo(sel.iterator().next());
}
+ private void activatedImportMissingModule(DebuggerMissingModuleActionContext context) {
+ if (importerService == null) {
+ Msg.error(this, "Import service is not present");
+ }
+ importModuleFromFileSystem(context.getModule());
+ consoleService.remove(context); // TODO: Should remove when mapping is created
+ }
+
+ private void activatedMapMissingModule(DebuggerMissingModuleActionContext context) {
+ mapModuleTo(context.getModule());
+ consoleService.remove(context); // TODO: Should remove when mapping is created
+ }
+
private void toggledFilter(ActionContext ignored) {
if (actionFilterSectionsByModules.isSelected()) {
sectionFilterPanel.setSecondaryFilter(filterSectionsBySelectedModules);
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DebuggerModelServicePlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DebuggerModelServicePlugin.java
index 4243d8b94c..38fe49708d 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DebuggerModelServicePlugin.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DebuggerModelServicePlugin.java
@@ -159,14 +159,14 @@ public class DebuggerModelServicePlugin extends Plugin
protected class ListenerOnRecorders implements TraceRecorderListener {
@Override
public void snapAdvanced(TraceRecorder recorder, long snap) {
- TimedMsg.info(this, "Got snapAdvanced callback");
+ TimedMsg.debug(this, "Got snapAdvanced callback");
fireSnapEvent(recorder, snap);
List<DebuggerModelServiceProxyPlugin> copy;
synchronized (proxies) {
copy = List.copyOf(proxies);
}
for (DebuggerModelServiceProxyPlugin proxy : copy) {
- TimedMsg.info(this, "Firing SnapEvent on " + proxy);
+ TimedMsg.debug(this, "Firing SnapEvent on " + proxy);
proxy.fireSnapEvent(recorder, snap);
}
}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DefaultThreadRecorder.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DefaultThreadRecorder.java
index 7adfeef18f..cfc9d349f8 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DefaultThreadRecorder.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/DefaultThreadRecorder.java
@@ -264,7 +264,7 @@ public class DefaultThreadRecorder implements ManagedThreadRecorder {
int frameLevel = stackRecorder.getSuccessorFrameLevel(bank);
long snap = recorder.getSnap();
String path = bank.getJoinedPath(".");
- TimedMsg.info(this, "Reg values changed: " + updates.keySet());
+ TimedMsg.debug(this, "Reg values changed: " + updates.keySet());
recorder.parTx.execute("Registers " + path + " changed", () -> {
TraceCodeManager codeManager = trace.getCodeManager();
TraceCodeRegisterSpace codeRegisterSpace =
@@ -377,7 +377,7 @@ public class DefaultThreadRecorder implements ManagedThreadRecorder {
if (targetRange == null) {
return AsyncUtils.NIL;
}
- TimedMsg.info(this,
+ TimedMsg.debug(this,
" Reading memory at " + name + " (" + targetAddress + " -> " + targetRange + ")");
// NOTE: Recorder takes data via memoryUpdated callback
// TODO: In that callback, sort out process memory from thread memory?
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/TraceEventListener.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/TraceEventListener.java
index a589345113..1d2f5ffd4d 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/TraceEventListener.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/model/TraceEventListener.java
@@ -119,7 +119,7 @@ public class TraceEventListener extends AnnotatedDebuggerAttributeListener {
if (!valid) {
return;
}
- TimedMsg.info(this, "Event: " + type + " thread=" + eventThread + " description=" +
+ TimedMsg.debug(this, "Event: " + type + " thread=" + eventThread + " description=" +
description + " params=" + parameters);
// Just use this to step the snaps. Creation/destruction still handled in add/remove
if (eventThread == null) {
@@ -162,7 +162,7 @@ public class TraceEventListener extends AnnotatedDebuggerAttributeListener {
if (!valid) {
return;
}
- TimedMsg.info(this, "State " + state + " for " + stateful);
+ TimedMsg.debug(this, "State " + state + " for " + stateful);
TargetObject x = recorder.objectManager.findThreadOrProcess(stateful);
if (x != null) {
if (x == target && state == TargetExecutionState.TERMINATED) {
@@ -204,7 +204,7 @@ public class TraceEventListener extends AnnotatedDebuggerAttributeListener {
}
Address traceAddr = recorder.getMemoryMapper().targetToTrace(address);
long snap = recorder.getSnap();
- TimedMsg.info(this, "Memory updated: " + address + " (" + data.length + ")");
+ TimedMsg.debug(this, "Memory updated: " + address + " (" + data.length + ")");
String path = memory.getJoinedPath(".");
recorder.parTx.execute("Memory observed: " + path, () -> {
memoryManager.putBytes(snap, traceAddr, ByteBuffer.wrap(data));
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServicePlugin.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServicePlugin.java
index 9347b14967..f8f2a03f07 100644
--- a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServicePlugin.java
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/tracemgr/DebuggerTraceManagerServicePlugin.java
@@ -618,7 +618,7 @@ public class DebuggerTraceManagerServicePlugin extends Plugin
}
else if (event instanceof TraceRecorderAdvancedPluginEvent) {
TraceRecorderAdvancedPluginEvent ev = (TraceRecorderAdvancedPluginEvent) event;
- TimedMsg.info(this, "Processing trace-advanced event");
+ TimedMsg.debug(this, "Processing trace-advanced event");
doTraceRecorderAdvanced(ev.getRecorder(), ev.getSnap());
}
}
diff --git a/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerConsoleService.java b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerConsoleService.java
new file mode 100644
index 0000000000..ad1654599b
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/main/java/ghidra/app/services/DebuggerConsoleService.java
@@ -0,0 +1,87 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.services;
+
+import javax.swing.Icon;
+
+import docking.ActionContext;
+import docking.action.DockingActionIf;
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsolePlugin;
+import ghidra.dbg.DebuggerConsoleLogger;
+import ghidra.framework.plugintool.ServiceInfo;
+import ghidra.util.HTMLUtilities;
+
+@ServiceInfo(defaultProvider = DebuggerConsolePlugin.class)
+public interface DebuggerConsoleService extends DebuggerConsoleLogger {
+
+ /**
+ * Log an actionable message to the console
+ *
+ * <p>
+ * <b>WARNING:</b> The log accepts and will interpret HTML in its messages, allowing a rich and
+ * flexible display; however, you MUST sanitize any content derived from the user or target. We
+ * recommend using {@link HTMLUtilities#escapeHTML(String)}.
+ *
+ * @param icon an icon for the message
+ * @param message the HTML-formatted message
+ * @param context an (immutable) context for actions
+ */
+ void log(Icon icon, String message, ActionContext context);
+
+ /**
+ * Remove an actionable message from the console
+ *
+ * <p>
+ * It is common courtesy to remove the entry when the user has resolved the issue, whether via
+ * the presented actions, or some other means. The framework does not do this automatically,
+ * because simply activating an action does not imply the issue will be resolved.
+ *
+ * @param context the context of the entry to remove
+ */
+ void remove(ActionContext context);
+
+ /**
+ * Add an action which might be applied to an actionable log message
+ *
+ * <p>
+ * Please invoke this method from the Swing thread. Only toolbar and pop-up menu placement is
+ * considered. Toolbar actions are placed as icon-only buttons in the "Actions" column for any
+ * log message where the action is applicable to the context given for that message. Pop-up
+ * actions are placed in the context menu when a single message is selected and the action is
+ * applicable to its given context. In most cases, the action should be presented both as a
+ * button and as a pop-up menu. Less commonly, an action may be presented only as a pop-up,
+ * likely because it is an uncommon resolution, or because you don't want the user to activated
+ * it accidentally. Rarely, if ever, should an action be a button, but not in the menu. The user
+ * may expect the menu to give more complete descriptions of actions presented as buttons.
+ *
+ * <p>
+ * <b>IMPORTANT:</b> Unlike other action managers, you are required to remove your actions upon
+ * plugin disposal.
+ *
+ * @param action the action
+ */
+ void addResolutionAction(DockingActionIf action);
+
+ /**
+ * Remove an action
+ *
+ * <p>
+ * Please invoke this method from the Swing thread.
+ *
+ * @param action the action
+ */
+ void removeResolutionAction(DockingActionIf action);
+}
diff --git a/Ghidra/Debug/Debugger/src/main/resources/defaultTools/Debugger.tool b/Ghidra/Debug/Debugger/src/main/resources/defaultTools/Debugger.tool
index d24e0a8845..37a33dd7a4 100644
--- a/Ghidra/Debug/Debugger/src/main/resources/defaultTools/Debugger.tool
+++ b/Ghidra/Debug/Debugger/src/main/resources/defaultTools/Debugger.tool
@@ -7,145 +7,154 @@
<TOOL TOOL_NAME="Debugger" INSTANCE_NAME="">
<OPTIONS />
<PACKAGE NAME="Debugger">
+ <INCLUDE CLASS="ghidra.app.plugin.core.debug.service.emulation.DebuggerEmulationServicePlugin" />
</PACKAGE>
<PACKAGE NAME="Ghidra Core">
<INCLUDE CLASS="ghidra.app.plugin.core.editor.TextEditorManagerPlugin" />
<INCLUDE CLASS="ghidra.app.plugin.core.interpreter.InterpreterPanelPlugin" />
</PACKAGE>
- <ROOT_NODE X_POS="60" Y_POS="466" WIDTH="1920" HEIGHT="1017" EX_STATE="0" FOCUSED_OWNER="DebuggerTargetsPlugin" FOCUSED_NAME="Debugger Targets" FOCUSED_TITLE="Debugger Targets">
+ <ROOT_NODE X_POS="671" Y_POS="447" WIDTH="1920" HEIGHT="1017" EX_STATE="0" FOCUSED_OWNER="DebuggerConsolePlugin" FOCUSED_NAME="Debug Console" FOCUSED_TITLE="Debug Console">
<SPLIT_NODE WIDTH="1918" HEIGHT="910" DIVIDER_LOCATION="767" ORIENTATION="VERTICAL">
<SPLIT_NODE WIDTH="100" HEIGHT="100" DIVIDER_LOCATION="0" ORIENTATION="VERTICAL">
- <SPLIT_NODE WIDTH="1918" HEIGHT="695" DIVIDER_LOCATION="156" ORIENTATION="HORIZONTAL">
- <SPLIT_NODE WIDTH="299" HEIGHT="695" DIVIDER_LOCATION="692" ORIENTATION="VERTICAL">
- <SPLIT_NODE WIDTH="299" HEIGHT="478" DIVIDER_LOCATION="427" ORIENTATION="VERTICAL">
+ <SPLIT_NODE WIDTH="1918" HEIGHT="695" DIVIDER_LOCATION="251" ORIENTATION="HORIZONTAL">
+ <SPLIT_NODE WIDTH="480" HEIGHT="695" DIVIDER_LOCATION="692" ORIENTATION="VERTICAL">
+ <SPLIT_NODE WIDTH="480" HEIGHT="478" DIVIDER_LOCATION="427" ORIENTATION="VERTICAL">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Debugger Targets" OWNER="DebuggerTargetsPlugin" TITLE="Debugger Targets" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434796977987111" />
+ <COMPONENT_INFO NAME="Debugger Targets" OWNER="DebuggerTargetsPlugin" TITLE="Debugger Targets" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027178" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Objects" OWNER="DebuggerObjectsPlugin" TITLE="Objects" ACTIVE="true" GROUP="Debugger.Core.Objects" INSTANCE_ID="3373434796977987110" />
+ <COMPONENT_INFO NAME="Objects" OWNER="DebuggerObjectsPlugin" TITLE="Objects" ACTIVE="true" GROUP="Debugger.Core.Objects" INSTANCE_ID="3398987890722027177" />
</COMPONENT_NODE>
</SPLIT_NODE>
- <COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="DataTypes Provider" OWNER="DataTypeManagerPlugin" TITLE="Data Type Manager" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434792393612850" />
- <COMPONENT_INFO NAME="Program Tree" OWNER="ProgramTreePlugin" TITLE="Program Trees" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434785093426726" />
- <COMPONENT_INFO NAME="Symbol Tree" OWNER="SymbolTreePlugin" TITLE="Symbol Tree" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434785093426730" />
+ <COMPONENT_NODE TOP_INFO="3">
+ <COMPONENT_INFO NAME="DataTypes Provider" OWNER="DataTypeManagerPlugin" TITLE="Data Type Manager" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987887848928947" />
+ <COMPONENT_INFO NAME="Program Tree" OWNER="ProgramTreePlugin" TITLE="Program Trees" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987882610243239" />
+ <COMPONENT_INFO NAME="Symbol Tree" OWNER="SymbolTreePlugin" TITLE="Symbol Tree" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987882610243243" />
+ <COMPONENT_INFO NAME="Debug Console" OWNER="DebuggerConsolePlugin" TITLE="Debug Console" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987888408868532" />
</COMPONENT_NODE>
</SPLIT_NODE>
<SPLIT_NODE WIDTH="1293" HEIGHT="590" DIVIDER_LOCATION="785" ORIENTATION="VERTICAL">
<SPLIT_NODE WIDTH="1386" HEIGHT="638" DIVIDER_LOCATION="705" ORIENTATION="VERTICAL">
- <SPLIT_NODE WIDTH="1615" HEIGHT="695" DIVIDER_LOCATION="679" ORIENTATION="HORIZONTAL">
- <SPLIT_NODE WIDTH="1094" HEIGHT="695" DIVIDER_LOCATION="506" ORIENTATION="VERTICAL">
+ <SPLIT_NODE WIDTH="1434" HEIGHT="695" DIVIDER_LOCATION="679" ORIENTATION="HORIZONTAL">
+ <SPLIT_NODE WIDTH="971" HEIGHT="695" DIVIDER_LOCATION="506" ORIENTATION="VERTICAL">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Listing" OWNER="DebuggerListingPlugin" TITLE="Dynamic" ACTIVE="true" GROUP="Core" INSTANCE_ID="3373434785093426731" />
+ <COMPONENT_INFO NAME="Listing" OWNER="DebuggerListingPlugin" TITLE="Dynamic" ACTIVE="true" GROUP="Core" INSTANCE_ID="3381048220378451124" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Listing" OWNER="CodeBrowserPlugin" TITLE="Listing: " ACTIVE="true" GROUP="Core" INSTANCE_ID="3367240603901382758" />
+ <COMPONENT_INFO NAME="Listing" OWNER="CodeBrowserPlugin" TITLE="Listing" ACTIVE="true" GROUP="Core" INSTANCE_ID="3398987873217099454" />
</COMPONENT_NODE>
</SPLIT_NODE>
- <COMPONENT_NODE TOP_INFO="9">
- <COMPONENT_INFO NAME="Decompiler" OWNER="DecompilePlugin" TITLE="Decompiler" ACTIVE="true" GROUP="Default" INSTANCE_ID="3367240603901382761" />
- <COMPONENT_INFO NAME="Bytes" OWNER="ByteViewerPlugin" TITLE="Bytes: No Program" ACTIVE="false" GROUP="Default" INSTANCE_ID="3367240603901382755" />
- <COMPONENT_INFO NAME="Data Window" OWNER="DataWindowPlugin" TITLE="Defined Data" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434796977987114" />
- <COMPONENT_INFO NAME="Defined Strings" OWNER="ViewStringsPlugin" TITLE="Defined Strings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434796977987104" />
- <COMPONENT_INFO NAME="Equates Table" OWNER="EquateTablePlugin" TITLE="Equates Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434785093426722" />
- <COMPONENT_INFO NAME="External Programs" OWNER="ReferencesPlugin" TITLE="External Programs" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434785093426727" />
- <COMPONENT_INFO NAME="Functions Window" OWNER="FunctionWindowPlugin" TITLE="Functions" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434793108741680" />
- <COMPONENT_INFO NAME="Relocation Table" OWNER="RelocationTablePlugin" TITLE="Relocation Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434793108741695" />
- <COMPONENT_INFO NAME="Modules" OWNER="DebuggerModulesPlugin" TITLE="Modules" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434796977987108" />
- <COMPONENT_INFO NAME="Registers" OWNER="DebuggerRegistersPlugin" TITLE="Registers" ACTIVE="true" GROUP="Debugger.Core" INSTANCE_ID="3373434796977987117" />
- <COMPONENT_INFO NAME="Breakpoints" OWNER="DebuggerBreakpointsPlugin" TITLE="Breakpoints" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434796977987116" />
+ <COMPONENT_NODE TOP_INFO="8">
+ <COMPONENT_INFO NAME="Decompiler" OWNER="DecompilePlugin" TITLE="Decompile: main" ACTIVE="true" GROUP="Default" INSTANCE_ID="3381048220378451132" />
+ <COMPONENT_INFO NAME="Bytes" OWNER="ByteViewerPlugin" TITLE="Bytes" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987873217099451" />
+ <COMPONENT_INFO NAME="Data Window" OWNER="DataWindowPlugin" TITLE="Defined Data" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987890722027181" />
+ <COMPONENT_INFO NAME="Defined Strings" OWNER="ViewStringsPlugin" TITLE="Defined Strings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987890722027171" />
+ <COMPONENT_INFO NAME="Equates Table" OWNER="EquateTablePlugin" TITLE="Equates Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987882610243235" />
+ <COMPONENT_INFO NAME="External Programs" OWNER="ReferencesPlugin" TITLE="External Programs" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987882610243240" />
+ <COMPONENT_INFO NAME="Functions Window" OWNER="FunctionWindowPlugin" TITLE="Functions" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987888408868529" />
+ <COMPONENT_INFO NAME="Relocation Table" OWNER="RelocationTablePlugin" TITLE="Relocation Table" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987890722027170" />
+ <COMPONENT_INFO NAME="Modules" OWNER="DebuggerModulesPlugin" TITLE="Modules" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027175" />
+ <COMPONENT_INFO NAME="Registers" OWNER="DebuggerRegistersPlugin" TITLE="Registers" ACTIVE="true" GROUP="Debugger.Core" INSTANCE_ID="3398987890722027184" />
+ <COMPONENT_INFO NAME="Breakpoints" OWNER="DebuggerBreakpointsPlugin" TITLE="Breakpoints" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027183" />
+ <COMPONENT_INFO NAME="DebuggerInterpreterPlugin" OWNER="InterpreterPanelPlugin" TITLE="Interpreter" ACTIVE="false" GROUP="Default" INSTANCE_ID="3381048220378451114" />
+ <COMPONENT_INFO NAME="Interpreter" OWNER="InterpreterPanelPlugin" TITLE="Interpreter" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398988136451618475" />
</COMPONENT_NODE>
</SPLIT_NODE>
<SPLIT_NODE WIDTH="1386" HEIGHT="189" DIVIDER_LOCATION="495" ORIENTATION="HORIZONTAL">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Data Type Preview" OWNER="DataTypePreviewPlugin" TITLE="Data Type Preview" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434793108741679" />
+ <COMPONENT_INFO NAME="Data Type Preview" OWNER="DataTypePreviewPlugin" TITLE="Data Type Preview" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987888408868528" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Virtual Disassembler - Current Instruction" OWNER="DisassembledViewPlugin" TITLE="Disassembled View" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434785093426721" />
+ <COMPONENT_INFO NAME="Virtual Disassembler - Current Instruction" OWNER="DisassembledViewPlugin" TITLE="Disassembled View" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987882610243234" />
</COMPONENT_NODE>
</SPLIT_NODE>
</SPLIT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Bookmarks" OWNER="BookmarkPlugin" TITLE="Bookmarks" ACTIVE="false" GROUP="Core.Bookmarks" INSTANCE_ID="3373434773550702137" />
+ <COMPONENT_INFO NAME="Bookmarks" OWNER="BookmarkPlugin" TITLE="Bookmarks" ACTIVE="false" GROUP="Core.Bookmarks" INSTANCE_ID="3398987873217099450" />
</COMPONENT_NODE>
</SPLIT_NODE>
</SPLIT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Function Call Trees" OWNER="CallTreePlugin" TITLE="Function Call Trees" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434773550702139" />
+ <COMPONENT_INFO NAME="Function Call Trees" OWNER="CallTreePlugin" TITLE="Function Call Trees" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987873217099452" />
</COMPONENT_NODE>
</SPLIT_NODE>
<SPLIT_NODE WIDTH="1918" HEIGHT="211" DIVIDER_LOCATION="348" ORIENTATION="HORIZONTAL">
<COMPONENT_NODE TOP_INFO="1">
- <COMPONENT_INFO NAME="Regions" OWNER="DebuggerRegionsPlugin" TITLE="Regions" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434796977987107" />
- <COMPONENT_INFO NAME="Stack" OWNER="DebuggerStackPlugin" TITLE="Stack" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434793108741683" />
- <COMPONENT_INFO NAME="Console" OWNER="ConsolePlugin" TITLE="Console" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434773550702142" />
- <COMPONENT_INFO NAME="Interpreter" OWNER="InterpreterPanelPlugin" TITLE="Interpreter" ACTIVE="false" GROUP="Default" INSTANCE_ID="3372862709093332258" />
- <COMPONENT_INFO NAME="Watches" OWNER="DebuggerWatchesPlugin" TITLE="Watches" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434796977987112" />
+ <COMPONENT_INFO NAME="Regions" OWNER="DebuggerRegionsPlugin" TITLE="Regions" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027174" />
+ <COMPONENT_INFO NAME="Stack" OWNER="DebuggerStackPlugin" TITLE="Stack" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987888408868533" />
+ <COMPONENT_INFO NAME="Console" OWNER="ConsolePlugin" TITLE="Console" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987873217099455" />
+ <COMPONENT_INFO NAME="Watches" OWNER="DebuggerWatchesPlugin" TITLE="Watches" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027179" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Threads" OWNER="DebuggerThreadsPlugin" TITLE="Threads" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434793108741693" />
- <COMPONENT_INFO NAME="Time" OWNER="DebuggerTimePlugin" TITLE="Time" ACTIVE="true" GROUP="Default" INSTANCE_ID="3373434793108741694" />
+ <COMPONENT_INFO NAME="Threads" OWNER="DebuggerThreadsPlugin" TITLE="Threads" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027168" />
+ <COMPONENT_INFO NAME="Time" OWNER="DebuggerTimePlugin" TITLE="Time" ACTIVE="true" GROUP="Default" INSTANCE_ID="3398987890722027169" />
+ <COMPONENT_INFO NAME="Pcode Stepper" OWNER="DebuggerPcodeStepperPlugin" TITLE="Pcode Stepper" ACTIVE="false" GROUP="Default" INSTANCE_ID="3381240965691561509" />
</COMPONENT_NODE>
</SPLIT_NODE>
</SPLIT_NODE>
<WINDOW_NODE X_POS="426" Y_POS="178" WIDTH="1033" HEIGHT="689">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Script Manager" OWNER="GhidraScriptMgrPlugin" TITLE="Script Manager" ACTIVE="false" GROUP="Script Group" INSTANCE_ID="3373434785093426728" />
+ <COMPONENT_INFO NAME="Script Manager" OWNER="GhidraScriptMgrPlugin" TITLE="Script Manager" ACTIVE="false" GROUP="Script Group" INSTANCE_ID="3398987882610243241" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="423" Y_POS="144" WIDTH="927" HEIGHT="370">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Memory Map" OWNER="MemoryMapPlugin" TITLE="Memory Map" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434785093426725" />
+ <COMPONENT_INFO NAME="Memory Map" OWNER="MemoryMapPlugin" TITLE="Memory Map" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987882610243238" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="383" Y_POS="7" WIDTH="1020" HEIGHT="1038">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Function Graph" OWNER="FunctionGraphPlugin" TITLE="Function Graph" ACTIVE="false" GROUP="Function Graph" INSTANCE_ID="3373434796977987115" />
+ <COMPONENT_INFO NAME="Function Graph" OWNER="FunctionGraphPlugin" TITLE="Function Graph" ACTIVE="false" GROUP="Function Graph" INSTANCE_ID="3398987890722027182" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="550" Y_POS="206" WIDTH="655" HEIGHT="509">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Register Manager" OWNER="RegisterPlugin" TITLE="Register Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434793108741681" />
+ <COMPONENT_INFO NAME="Register Manager" OWNER="RegisterPlugin" TITLE="Register Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987888408868530" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="287" Y_POS="186" WIDTH="1424" HEIGHT="666">
<SPLIT_NODE WIDTH="1408" HEIGHT="559" DIVIDER_LOCATION="573" ORIENTATION="HORIZONTAL">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Symbol Table" OWNER="SymbolTablePlugin" TITLE="Symbol Table" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3373434796977987105" />
+ <COMPONENT_INFO NAME="Symbol Table" OWNER="SymbolTablePlugin" TITLE="Symbol Table" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3398987890722027172" />
</COMPONENT_NODE>
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Symbol References" OWNER="SymbolTablePlugin" TITLE="Symbol References" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3373434796977987106" />
+ <COMPONENT_INFO NAME="Symbol References" OWNER="SymbolTablePlugin" TITLE="Symbol References" ACTIVE="false" GROUP="symbolTable" INSTANCE_ID="3398987890722027173" />
</COMPONENT_NODE>
</SPLIT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Checksum Generator" OWNER="ComputeChecksumsPlugin" TITLE="Checksum Generator" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434773550702140" />
+ <COMPONENT_INFO NAME="Checksum Generator" OWNER="ComputeChecksumsPlugin" TITLE="Checksum Generator" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987873217099453" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Function Tags" OWNER="FunctionTagPlugin" TITLE="Function Tags" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434785093426724" />
+ <COMPONENT_INFO NAME="Function Tags" OWNER="FunctionTagPlugin" TITLE="Function Tags" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987882610243237" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Comment Window" OWNER="CommentWindowPlugin" TITLE="Comments" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434796977987113" />
+ <COMPONENT_INFO NAME="Comment Window" OWNER="CommentWindowPlugin" TITLE="Comments" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987890722027180" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="-1" Y_POS="-1" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Python" OWNER="InterpreterPanelPlugin" TITLE="Python" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434793108741682" />
+ <COMPONENT_INFO NAME="Python" OWNER="InterpreterPanelPlugin" TITLE="Python" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987888408868531" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Function Call Graph" OWNER="FunctionCallGraphPlugin" TITLE="Function Call Graph" ACTIVE="false" GROUP="Function Call Graph" INSTANCE_ID="3373434785093426732" />
+ <COMPONENT_INFO NAME="Function Call Graph" OWNER="FunctionCallGraphPlugin" TITLE="Function Call Graph" ACTIVE="false" GROUP="Function Call Graph" INSTANCE_ID="3398987882610243245" />
+ </COMPONENT_NODE>
+ </WINDOW_NODE>
+ <WINDOW_NODE X_POS="658" Y_POS="1489" WIDTH="470" HEIGHT="540">
+ <COMPONENT_NODE TOP_INFO="0">
+ <COMPONENT_INFO NAME="Memory Range Mappings" OWNER="DebuggerStaticMappingPlugin" TITLE="Memory Range Mappings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3367472270453938012" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="BundleManager" OWNER="GhidraScriptMgrPlugin" TITLE="Bundle Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434785093426729" />
+ <COMPONENT_INFO NAME="BundleManager" OWNER="GhidraScriptMgrPlugin" TITLE="Bundle Manager" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987882610243242" />
</COMPONENT_NODE>
</WINDOW_NODE>
<WINDOW_NODE X_POS="2105" Y_POS="966" WIDTH="1122" HEIGHT="546">
@@ -155,54 +164,26 @@
</WINDOW_NODE>
<WINDOW_NODE X_POS="0" Y_POS="0" WIDTH="0" HEIGHT="0">
<COMPONENT_NODE TOP_INFO="0">
- <COMPONENT_INFO NAME="Static Mappings" OWNER="DebuggerStaticMappingPlugin" TITLE="Static Mappings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3373434796977987109" />
+ <COMPONENT_INFO NAME="Static Mappings" OWNER="DebuggerStaticMappingPlugin" TITLE="Static Mappings" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987890722027176" />
+ </COMPONENT_NODE>
+ </WINDOW_NODE>
+ <WINDOW_NODE X_POS="1429" Y_POS="806" WIDTH="982" HEIGHT="580">
+ <COMPONENT_NODE TOP_INFO="0">
+ <COMPONENT_INFO NAME="Memview" OWNER="DebuggerMemviewPlugin" TITLE="Memview" ACTIVE="false" GROUP="Default" INSTANCE_ID="3398987888408868543" />
</COMPONENT_NODE>
</WINDOW_NODE>
</ROOT_NODE>
<PREFERENCES>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.analysis.AnalysisPanel$1:Enabled:Analyzer Name:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Enabled" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Analyzer Name" WIDTH="254" VISIBLE="true" />
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.filechooser.DirectoryTableModel:Filename:Size:Modified:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Filename" WIDTH="225" VISIBLE="true" />
- <COLUMN NAME="Size" WIDTH="226" VISIBLE="true" />
- <COLUMN NAME="Modified" WIDTH="226" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.stack.DebuggerStackProvider$StackTableModel:Level:PC:Function:Comment:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Level" WIDTH="166" VISIBLE="true" />
- <COLUMN NAME="PC" WIDTH="165" VISIBLE="true" />
- <COLUMN NAME="Function" WIDTH="165" VISIBLE="true" />
- <COLUMN NAME="Comment" WIDTH="164" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Base Address:Max Address:Module Name:Lifespan:Length:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.memview.MemviewMapModel:Name:Start Address:End Address:Start Time:End Time:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Base Address" WIDTH="102" VISIBLE="true" />
- <COLUMN NAME="Max Address" WIDTH="102" VISIBLE="true" />
- <COLUMN NAME="Module Name" WIDTH="102" VISIBLE="true" />
- <COLUMN NAME="Lifespan" WIDTH="102" VISIBLE="true" />
- <COLUMN NAME="Length" WIDTH="101" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="90" VISIBLE="true" />
+ <COLUMN NAME="Start Address" WIDTH="90" VISIBLE="true" />
+ <COLUMN NAME="End Address" WIDTH="90" VISIBLE="true" />
+ <COLUMN NAME="Start Time" WIDTH="90" VISIBLE="true" />
+ <COLUMN NAME="End Time" WIDTH="90" VISIBLE="true" />
<TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
@@ -233,32 +214,6 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.datawindow.DataTableModel:Data:Location:Type:Size:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="ghidra.app.plugin.core.datawindow.DataTableModel$DataValueTableColumn" WIDTH="122" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="98" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.datawindow.DataTableModel$TypeTableColumn" WIDTH="122" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.datawindow.DataTableModel$SizeTableColumn" WIDTH="78" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="75" VISIBLE="false" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
<PREFERENCE_STATE NAME="ghidra.app.plugin.core.symtable.SymbolReferenceModel:From Location:Label:Subroutine:Access:From Preview:">
<XML NAME="COLUMN_DATA">
<Table_State>
@@ -311,52 +266,6 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.ErrLogDialog$ErrEntryTableModel:#:Message:Details:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$IdColumn.#" WIDTH="15" VISIBLE="true" />
- <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$MessageColumn.Message" WIDTH="15" VISIBLE="true" />
- <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$DetailsColumn.Details" WIDTH="500" VISIBLE="false" />
- <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$TimestampColumn.Time" WIDTH="15" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.datapreview.DataTypePreviewPlugin$MyTableModel:Name:Preview:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Name" WIDTH="682" VISIBLE="true" />
- <COLUMN NAME="Preview" WIDTH="681" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Tick:Description:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Tick" WIDTH="321" VISIBLE="true" />
- <COLUMN NAME="Description" WIDTH="780" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.equate.EquateReferenceTableModel:Ref Addr:Op Index:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Ref Addr" WIDTH="82" VISIBLE="true" />
- <COLUMN NAME="Op Index" WIDTH="82" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
<PREFERENCE_STATE NAME="ghidra.app.plugin.core.equate.EquateTableModel:Name:Value:# Refs:">
<XML NAME="COLUMN_DATA">
<Table_State>
@@ -369,56 +278,15 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.GTableFilterPanel$SortedTableModelWrapper:Action Name:KeyBinding:Plugin Name:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Action Name" WIDTH="359" VISIBLE="true" />
- <COLUMN NAME="KeyBinding" WIDTH="180" VISIBLE="true" />
- <COLUMN NAME="Plugin Name" WIDTH="179" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Remove:Module:Section:Dynamic Base:Program:Block:Static Base:Size:Choose:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Remove" WIDTH="32" VISIBLE="true" />
- <COLUMN NAME="Module" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Section" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Dynamic Base" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Program" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Block" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Static Base" WIDTH="75" VISIBLE="true" />
- <COLUMN NAME="Size" WIDTH="74" VISIBLE="true" />
- <COLUMN NAME="Choose" WIDTH="32" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel:Type:Category:Description:Location:Label:Preview:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.modules.DebuggerModulesProvider$ModuleTableModel:Base Address:Max Address:Name:Module Name:Lifespan:Length:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel$TypeTableColumn" WIDTH="189" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel$CategoryTableColumn" WIDTH="204" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel$DescriptionTableColumn" WIDTH="313" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="204" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="189" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="263" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="15" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="Base Address" WIDTH="73" VISIBLE="true" />
+ <COLUMN NAME="Max Address" WIDTH="73" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="73" VISIBLE="true" />
+ <COLUMN NAME="Module Name" WIDTH="73" VISIBLE="true" />
+ <COLUMN NAME="Lifespan" WIDTH="72" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="72" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
@@ -439,19 +307,6 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.listing.DebuggerModuleImportDialog$FileTableModel:Remove:Ignore:Path:Import:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Remove" WIDTH="32" VISIBLE="true" />
- <COLUMN NAME="Ignore" WIDTH="26" VISIBLE="true" />
- <COLUMN NAME="Path" WIDTH="368" VISIBLE="true" />
- <COLUMN NAME="Import" WIDTH="32" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
<PREFERENCE_STATE NAME="ghidra.app.plugin.core.register.RegisterValuesPanel$RegisterValuesTableModel:Start Address:End Address:Value:">
<XML NAME="COLUMN_DATA">
<Table_State>
@@ -467,15 +322,15 @@
<PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Name:Lifespan:Start:End:Length:Read:Write:Execute:Volatile:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Name" WIDTH="126" VISIBLE="true" />
- <COLUMN NAME="Lifespan" WIDTH="67" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="122" VISIBLE="true" />
+ <COLUMN NAME="Lifespan" WIDTH="68" VISIBLE="true" />
<COLUMN NAME="Start" WIDTH="70" VISIBLE="true" />
- <COLUMN NAME="End" WIDTH="91" VISIBLE="true" />
- <COLUMN NAME="Length" WIDTH="65" VISIBLE="true" />
- <COLUMN NAME="Read" WIDTH="60" VISIBLE="true" />
- <COLUMN NAME="Write" WIDTH="66" VISIBLE="true" />
- <COLUMN NAME="Execute" WIDTH="58" VISIBLE="true" />
- <COLUMN NAME="Volatile" WIDTH="57" VISIBLE="true" />
+ <COLUMN NAME="End" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="68" VISIBLE="true" />
+ <COLUMN NAME="Read" WIDTH="61" VISIBLE="true" />
+ <COLUMN NAME="Write" WIDTH="67" VISIBLE="true" />
+ <COLUMN NAME="Execute" WIDTH="59" VISIBLE="true" />
+ <COLUMN NAME="Volatile" WIDTH="58" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
@@ -483,45 +338,31 @@
</XML>
</PREFERENCE_STATE>
<PREFERENCE_STATE NAME="GRAPH_DISPLAY_SERVICE" />
- <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Dynamic Address:Static Program:Static Address:Length:">
- <XML NAME="COLUMN_DATA">
- <Table_State>
- <COLUMN NAME="Dynamic Address" WIDTH="115" VISIBLE="true" />
- <COLUMN NAME="Static Program" WIDTH="114" VISIBLE="true" />
- <COLUMN NAME="Static Address" WIDTH="115" VISIBLE="true" />
- <COLUMN NAME="Length" WIDTH="114" VISIBLE="true" />
- <TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
- </TABLE_SORT_STATE>
- </Table_State>
- </XML>
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.watch.DebuggerWatchesProvider$WatchTableModel:Expression:Address:Value:Type:Repr:Error:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.memory.DebuggerRegionsProvider$RegionTableModel:Name:Lifespan:Start:End:Length:Read:Write:Execute:Volatile:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Expression" WIDTH="110" VISIBLE="true" />
- <COLUMN NAME="Address" WIDTH="110" VISIBLE="true" />
- <COLUMN NAME="Value" WIDTH="110" VISIBLE="true" />
- <COLUMN NAME="Type" WIDTH="110" VISIBLE="true" />
- <COLUMN NAME="Repr" WIDTH="110" VISIBLE="true" />
- <COLUMN NAME="Error" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="104" VISIBLE="true" />
+ <COLUMN NAME="Lifespan" WIDTH="104" VISIBLE="true" />
+ <COLUMN NAME="Start" WIDTH="105" VISIBLE="true" />
+ <COLUMN NAME="End" WIDTH="104" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="105" VISIBLE="true" />
+ <COLUMN NAME="Read" WIDTH="31" VISIBLE="true" />
+ <COLUMN NAME="Write" WIDTH="30" VISIBLE="true" />
+ <COLUMN NAME="Execute" WIDTH="31" VISIBLE="true" />
+ <COLUMN NAME="Volatile" WIDTH="31" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="SymbolTablePlugin">
- <STATE NAME="SELECTION_NAVIGATION_SELECTED_STATE" TYPE="boolean" VALUE="true" />
- </PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Snap:Timestamp:Event Thread:Ticks:Description:">
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Dynamic Address:Static Program:Static Address:Length:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Snap" WIDTH="95" VISIBLE="true" />
- <COLUMN NAME="Timestamp" WIDTH="288" VISIBLE="true" />
- <COLUMN NAME="Event Thread" WIDTH="287" VISIBLE="true" />
- <COLUMN NAME="Ticks" WIDTH="286" VISIBLE="true" />
- <COLUMN NAME="Description" WIDTH="286" VISIBLE="true" />
+ <COLUMN NAME="Dynamic Address" WIDTH="115" VISIBLE="true" />
+ <COLUMN NAME="Static Program" WIDTH="114" VISIBLE="true" />
+ <COLUMN NAME="Static Address" WIDTH="115" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="114" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
@@ -629,12 +470,12 @@
<PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.register.DebuggerRegistersProvider$RegistersTableModel:Fav:#:Name:Value:Type:Repr:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Fav" WIDTH="47" VISIBLE="true" />
- <COLUMN NAME="#" WIDTH="46" VISIBLE="true" />
- <COLUMN NAME="Name" WIDTH="73" VISIBLE="true" />
- <COLUMN NAME="Value" WIDTH="131" VISIBLE="true" />
- <COLUMN NAME="Type" WIDTH="83" VISIBLE="true" />
- <COLUMN NAME="Repr" WIDTH="131" VISIBLE="true" />
+ <COLUMN NAME="Fav" WIDTH="48" VISIBLE="true" />
+ <COLUMN NAME="#" WIDTH="44" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="66" VISIBLE="true" />
+ <COLUMN NAME="Value" WIDTH="104" VISIBLE="true" />
+ <COLUMN NAME="Type" WIDTH="71" VISIBLE="true" />
+ <COLUMN NAME="Repr" WIDTH="105" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="descending" SORT_ORDER="1" />
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="2" />
@@ -642,28 +483,15 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.strings.ViewStringsTableModel:Location:String:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.watch.DebuggerWatchesProvider$WatchTableModel:Expression:Address:Data Type:Raw:Value:Error:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="210" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.strings.ViewStringsTableModel$DataValueColumn" WIDTH="210" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionBodySizeTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionSignatureTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionPurgeTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.FunctionCallingConventionTableColumn" WIDTH="75" VISIBLE="false" />
- <COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="Expression" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Address" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Data Type" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Raw" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Value" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Error" WIDTH="110" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
@@ -684,165 +512,511 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.listing.DebuggerModuleImportDialog$FileTableModel:Remove:Path:Import:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.modules.DebuggerModulesProvider$SectionTableModel:Start Address:End Address:Section Name:Module Name:Length:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Remove" WIDTH="32" VISIBLE="true" />
- <COLUMN NAME="Path" WIDTH="394" VISIBLE="true" />
- <COLUMN NAME="Import" WIDTH="32" VISIBLE="true" />
+ <COLUMN NAME="Start Address" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="End Address" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="Section Name" WIDTH="88" VISIBLE="true" />
+ <COLUMN NAME="Module Name" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="87" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.breakpoint.DebuggerBreakpointsProvider$LogicalBreakpointTableModel:Enabled:Image:Address:Length:Kinds:Locations:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.register.DebuggerAvailableRegistersDialog$AvailableRegistersTableModel::#:Name:Bits:Known:Group:Contains:Parent:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Enabled" WIDTH="42" VISIBLE="true" />
- <COLUMN NAME="Image" WIDTH="142" VISIBLE="true" />
- <COLUMN NAME="Address" WIDTH="68" VISIBLE="true" />
- <COLUMN NAME="Length" WIDTH="48" VISIBLE="true" />
- <COLUMN NAME="Kinds" WIDTH="68" VISIBLE="true" />
- <COLUMN NAME="Locations" WIDTH="141" VISIBLE="true" />
+ <COLUMN NAME="" WIDTH="50" VISIBLE="true" />
+ <COLUMN NAME="#" WIDTH="45" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="70" VISIBLE="true" />
+ <COLUMN NAME="Bits" WIDTH="61" VISIBLE="true" />
+ <COLUMN NAME="Known" WIDTH="51" VISIBLE="true" />
+ <COLUMN NAME="Group" WIDTH="70" VISIBLE="true" />
+ <COLUMN NAME="Contains" WIDTH="51" VISIBLE="true" />
+ <COLUMN NAME="Parent" WIDTH="60" VISIBLE="true" />
<TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="2" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.GTableFilterPanel$SortedTableModelWrapper:In Tool:Status:Filename:Description:Key Binding:Full Path:Category:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.memory.MemoryMapModel:Name:Start:End:Length:R:W:X:Volatile:Type:Initialized:Source:Comment:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="In Tool" WIDTH="50" VISIBLE="true" />
- <COLUMN NAME="Status" WIDTH="50" VISIBLE="true" />
- <COLUMN NAME="Filename" WIDTH="147" VISIBLE="true" />
- <COLUMN NAME="Description" WIDTH="245" VISIBLE="true" />
- <COLUMN NAME="Key Binding" WIDTH="100" VISIBLE="true" />
- <COLUMN NAME="Full Path" WIDTH="122" VISIBLE="true" />
- <COLUMN NAME="Category" WIDTH="122" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Start" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="End" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="R" WIDTH="25" VISIBLE="true" />
+ <COLUMN NAME="W" WIDTH="25" VISIBLE="true" />
+ <COLUMN NAME="X" WIDTH="25" VISIBLE="true" />
+ <COLUMN NAME="Volatile" WIDTH="50" VISIBLE="true" />
+ <COLUMN NAME="Type" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Initialized" WIDTH="60" VISIBLE="true" />
+ <COLUMN NAME="Source" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Comment" WIDTH="102" VISIBLE="true" />
<TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="2" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.register.DebuggerAvailableRegistersDialog$AvailableRegistersTableModel::#:Name:Bits:Known:Group:Contains:Parent:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.functionwindow.FunctionTableModel:Label:Location:Function Signature:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="" WIDTH="50" VISIBLE="true" />
- <COLUMN NAME="#" WIDTH="45" VISIBLE="true" />
- <COLUMN NAME="Name" WIDTH="70" VISIBLE="true" />
- <COLUMN NAME="Bits" WIDTH="61" VISIBLE="true" />
- <COLUMN NAME="Known" WIDTH="51" VISIBLE="true" />
- <COLUMN NAME="Group" WIDTH="70" VISIBLE="true" />
- <COLUMN NAME="Contains" WIDTH="51" VISIBLE="true" />
- <COLUMN NAME="Parent" WIDTH="60" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="148" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="124" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionSignatureTableColumn" WIDTH="148" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionBodySizeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionPurgeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionCallingConventionTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="75" VISIBLE="false" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Dynamic Address:Static Program:Static Address:Length:Shift:Lifespan:">
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Snap:Timestamp:Event Thread:Schedule:Description:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Dynamic Address" WIDTH="76" VISIBLE="true" />
- <COLUMN NAME="Static Program" WIDTH="76" VISIBLE="true" />
- <COLUMN NAME="Static Address" WIDTH="77" VISIBLE="true" />
- <COLUMN NAME="Length" WIDTH="76" VISIBLE="true" />
- <COLUMN NAME="Shift" WIDTH="77" VISIBLE="true" />
- <COLUMN NAME="Lifespan" WIDTH="76" VISIBLE="true" />
+ <COLUMN NAME="Snap" WIDTH="181" VISIBLE="true" />
+ <COLUMN NAME="Timestamp" WIDTH="339" VISIBLE="true" />
+ <COLUMN NAME="Event Thread" WIDTH="182" VISIBLE="true" />
+ <COLUMN NAME="Schedule" WIDTH="201" VISIBLE="true" />
+ <COLUMN NAME="Description" WIDTH="339" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.table.SelectColumnsDialog$SelectColumnsModel:Visible:Column Name:Is Default?:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.console.DebuggerConsoleProvider$LogTableModel:Level:Message:Actions:Time:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Visible" WIDTH="30" VISIBLE="true" />
- <COLUMN NAME="Column Name" WIDTH="179" VISIBLE="true" />
- <COLUMN NAME="Is Default?" WIDTH="179" VISIBLE="true" />
+ <COLUMN NAME="Level" WIDTH="24" VISIBLE="true" />
+ <COLUMN NAME="Message" WIDTH="237" VISIBLE="true" />
+ <COLUMN NAME="Actions" WIDTH="88" VISIBLE="true" />
+ <COLUMN NAME="Time" WIDTH="110" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="2" SORT_DIRECTION="descending" SORT_ORDER="1" />
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="3" SORT_DIRECTION="descending" SORT_ORDER="2" />
+ </TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.reloc.RelocationTableModel:Location:Type:Values:Original Bytes:Name:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.analysis.AnalysisPanel$1:Enabled:Analyzer Name:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="87" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationTypeColumn" WIDTH="88" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationValueColumn" WIDTH="87" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationBytesColumn" WIDTH="88" VISIBLE="true" />
- <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationNameColumn" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="Enabled" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Analyzer Name" WIDTH="254" VISIBLE="true" />
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.filechooser.DirectoryTableModel:Filename:Size:Modified:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Filename" WIDTH="225" VISIBLE="true" />
+ <COLUMN NAME="Size" WIDTH="226" VISIBLE="true" />
+ <COLUMN NAME="Modified" WIDTH="226" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.stack.DebuggerStackProvider$StackTableModel:Level:PC:Function:Comment:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Level" WIDTH="166" VISIBLE="true" />
+ <COLUMN NAME="PC" WIDTH="165" VISIBLE="true" />
+ <COLUMN NAME="Function" WIDTH="165" VISIBLE="true" />
+ <COLUMN NAME="Comment" WIDTH="164" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Base Address:Max Address:Module Name:Lifespan:Length:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Base Address" WIDTH="102" VISIBLE="true" />
+ <COLUMN NAME="Max Address" WIDTH="102" VISIBLE="true" />
+ <COLUMN NAME="Module Name" WIDTH="102" VISIBLE="true" />
+ <COLUMN NAME="Lifespan" WIDTH="102" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="101" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.pcode.DebuggerPcodeStepperProvider$UniqueTableModel:Name:Value:Type:Repr:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Name" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Value" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Type" WIDTH="103" VISIBLE="true" />
+ <COLUMN NAME="Repr" WIDTH="103" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.breakpoint.DebuggerBreakpointsProvider$BreakpointLocationTableModel:Enabled:Name:Address:Trace:Threads:Comment:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Enabled" WIDTH="18" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="86" VISIBLE="true" />
+ <COLUMN NAME="Address" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="Trace" WIDTH="86" VISIBLE="true" />
+ <COLUMN NAME="Threads" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="Comment" WIDTH="87" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="2" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.thread.DebuggerThreadsProvider$ThreadTableModel:Name:Created:Destroyed:State:Comment:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Name" WIDTH="152" VISIBLE="true" />
+ <COLUMN NAME="Created" WIDTH="152" VISIBLE="true" />
+ <COLUMN NAME="Destroyed" WIDTH="152" VISIBLE="true" />
+ <COLUMN NAME="State" WIDTH="152" VISIBLE="true" />
+ <COLUMN NAME="Comment" WIDTH="151" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.datawindow.DataTableModel:Data:Location:Type:Size:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="ghidra.app.plugin.core.datawindow.DataTableModel$DataValueTableColumn" WIDTH="122" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="98" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.datawindow.DataTableModel$TypeTableColumn" WIDTH="122" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.datawindow.DataTableModel$SizeTableColumn" WIDTH="78" VISIBLE="true" />
<COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="75" VISIBLE="false" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.ErrLogDialog$ErrEntryTableModel:#:Message:Details:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$IdColumn.#" WIDTH="331" VISIBLE="true" />
+ <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$MessageColumn.Message" WIDTH="332" VISIBLE="true" />
+ <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$DetailsColumn.Details" WIDTH="500" VISIBLE="false" />
+ <COLUMN NAME="docking.ErrLogDialog$ErrEntryTableModel$TimestampColumn.Time" WIDTH="331" VISIBLE="true" />
<TABLE_SORT_STATE>
<COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="docking.widgets.pathmanager.PathManagerModel:Use:Path:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.datapreview.DataTypePreviewPlugin$MyTableModel:Name:Preview:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Use" WIDTH="50" VISIBLE="true" />
- <COLUMN NAME="Path" WIDTH="294" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="682" VISIBLE="true" />
+ <COLUMN NAME="Preview" WIDTH="681" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.memory.MemoryMapModel:Name:Start:End:Length:R:W:X:Volatile:Type:Initialized:Source:Comment:">
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Tick:Description:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="Name" WIDTH="103" VISIBLE="true" />
- <COLUMN NAME="Start" WIDTH="103" VISIBLE="true" />
- <COLUMN NAME="End" WIDTH="103" VISIBLE="true" />
- <COLUMN NAME="Length" WIDTH="103" VISIBLE="true" />
- <COLUMN NAME="R" WIDTH="25" VISIBLE="true" />
- <COLUMN NAME="W" WIDTH="25" VISIBLE="true" />
- <COLUMN NAME="X" WIDTH="25" VISIBLE="true" />
- <COLUMN NAME="Volatile" WIDTH="50" VISIBLE="true" />
- <COLUMN NAME="Type" WIDTH="103" VISIBLE="true" />
- <COLUMN NAME="Initialized" WIDTH="60" VISIBLE="true" />
- <COLUMN NAME="Source" WIDTH="103" VISIBLE="true" />
- <COLUMN NAME="Comment" WIDTH="102" VISIBLE="true" />
+ <COLUMN NAME="Tick" WIDTH="321" VISIBLE="true" />
+ <COLUMN NAME="Description" WIDTH="780" VISIBLE="true" />
<TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
- <PREFERENCE_STATE NAME="ghidra.app.plugin.core.functionwindow.FunctionTableModel:Label:Location:Function Signature:">
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.equate.EquateReferenceTableModel:Ref Addr:Op Index:">
<XML NAME="COLUMN_DATA">
<Table_State>
- <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="148" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="124" VISIBLE="true" />
- <COLUMN NAME="ghidra.util.table.field.FunctionSignatureTableColumn" WIDTH="148" VISIBLE="true" />
+ <COLUMN NAME="Ref Addr" WIDTH="82" VISIBLE="true" />
+ <COLUMN NAME="Op Index" WIDTH="82" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.GTableFilterPanel$SortedTableModelWrapper:Action Name:KeyBinding:Plugin Name:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Action Name" WIDTH="359" VISIBLE="true" />
+ <COLUMN NAME="KeyBinding" WIDTH="180" VISIBLE="true" />
+ <COLUMN NAME="Plugin Name" WIDTH="179" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Remove:Module:Section:Dynamic Base:Program:Block:Static Base:Size:Choose:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Remove" WIDTH="32" VISIBLE="true" />
+ <COLUMN NAME="Module" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Section" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Dynamic Base" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Program" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Block" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Static Base" WIDTH="75" VISIBLE="true" />
+ <COLUMN NAME="Size" WIDTH="74" VISIBLE="true" />
+ <COLUMN NAME="Choose" WIDTH="32" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel:Type:Category:Description:Location:Label:Preview:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel$TypeTableColumn" WIDTH="189" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel$CategoryTableColumn" WIDTH="204" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.bookmark.BookmarkTableModel$DescriptionTableColumn" WIDTH="313" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="204" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="189" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="263" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="15" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="15" VISIBLE="false" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.pcode.DebuggerPcodeStepperProvider$PcodeTableModel:Sequence:Code:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Sequence" WIDTH="27" VISIBLE="true" />
+ <COLUMN NAME="Code" WIDTH="423" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.listing.DebuggerModuleImportDialog$FileTableModel:Remove:Ignore:Path:Import:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Remove" WIDTH="32" VISIBLE="true" />
+ <COLUMN NAME="Ignore" WIDTH="26" VISIBLE="true" />
+ <COLUMN NAME="Path" WIDTH="368" VISIBLE="true" />
+ <COLUMN NAME="Import" WIDTH="32" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.watch.DebuggerWatchesProvider$WatchTableModel:Expression:Address:Value:Type:Repr:Error:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Expression" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Address" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Value" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Type" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Repr" WIDTH="110" VISIBLE="true" />
+ <COLUMN NAME="Error" WIDTH="110" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="SymbolTablePlugin">
+ <STATE NAME="SELECTION_NAVIGATION_SELECTED_STATE" TYPE="boolean" VALUE="true" />
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.pcode.DebuggerPcodeStepperProvider$UniqueTableModel:Ref:Unique:Bytes:Value:Type:Repr:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Ref" WIDTH="45" VISIBLE="true" />
+ <COLUMN NAME="Unique" WIDTH="138" VISIBLE="true" />
+ <COLUMN NAME="Bytes" WIDTH="147" VISIBLE="true" />
+ <COLUMN NAME="Value" WIDTH="138" VISIBLE="true" />
+ <COLUMN NAME="Type" WIDTH="153" VISIBLE="true" />
+ <COLUMN NAME="Repr" WIDTH="153" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="4" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Snap:Timestamp:Event Thread:Ticks:Description:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Snap" WIDTH="95" VISIBLE="true" />
+ <COLUMN NAME="Timestamp" WIDTH="288" VISIBLE="true" />
+ <COLUMN NAME="Event Thread" WIDTH="287" VISIBLE="true" />
+ <COLUMN NAME="Ticks" WIDTH="286" VISIBLE="true" />
+ <COLUMN NAME="Description" WIDTH="286" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.strings.ViewStringsTableModel:Location:String:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="210" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.strings.ViewStringsTableModel$DataValueColumn" WIDTH="210" VISIBLE="true" />
<COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.SymbolTypeTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.MemorySectionProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionBodySizeTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionSignatureTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.NamespaceTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.SourceTypeTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionPurgeTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.MemoryTypeProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.LabelTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.ByteCountProgramLocationBasedTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.FunctionCallingConventionTableColumn" WIDTH="75" VISIBLE="false" />
<COLUMN NAME="ghidra.util.table.field.PreviewTableColumn" WIDTH="75" VISIBLE="false" />
<TABLE_SORT_STATE>
- <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="1" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.debug.gui.breakpoint.DebuggerBreakpointsProvider$LogicalBreakpointTableModel:Enabled:Image:Address:Length:Kinds:Locations:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Enabled" WIDTH="38" VISIBLE="true" />
+ <COLUMN NAME="Image" WIDTH="125" VISIBLE="true" />
+ <COLUMN NAME="Address" WIDTH="61" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="43" VISIBLE="true" />
+ <COLUMN NAME="Kinds" WIDTH="61" VISIBLE="true" />
+ <COLUMN NAME="Locations" WIDTH="123" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="2" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.GTableFilterPanel$SortedTableModelWrapper:In Tool:Status:Filename:Description:Key Binding:Full Path:Category:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="In Tool" WIDTH="50" VISIBLE="true" />
+ <COLUMN NAME="Status" WIDTH="50" VISIBLE="true" />
+ <COLUMN NAME="Filename" WIDTH="147" VISIBLE="true" />
+ <COLUMN NAME="Description" WIDTH="245" VISIBLE="true" />
+ <COLUMN NAME="Key Binding" WIDTH="100" VISIBLE="true" />
+ <COLUMN NAME="Full Path" WIDTH="122" VISIBLE="true" />
+ <COLUMN NAME="Category" WIDTH="122" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="2" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Dynamic Address:Static Program:Static Address:Length:Shift:Lifespan:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Dynamic Address" WIDTH="76" VISIBLE="true" />
+ <COLUMN NAME="Static Program" WIDTH="76" VISIBLE="true" />
+ <COLUMN NAME="Static Address" WIDTH="77" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="76" VISIBLE="true" />
+ <COLUMN NAME="Shift" WIDTH="77" VISIBLE="true" />
+ <COLUMN NAME="Lifespan" WIDTH="76" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.SelectColumnsDialog$SelectColumnsModel:Visible:Column Name:Is Default?:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Visible" WIDTH="30" VISIBLE="true" />
+ <COLUMN NAME="Column Name" WIDTH="179" VISIBLE="true" />
+ <COLUMN NAME="Is Default?" WIDTH="179" VISIBLE="true" />
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="ghidra.app.plugin.core.reloc.RelocationTableModel:Location:Type:Values:Original Bytes:Name:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="ghidra.util.table.field.AddressTableColumn" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationTypeColumn" WIDTH="88" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationValueColumn" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationBytesColumn" WIDTH="88" VISIBLE="true" />
+ <COLUMN NAME="ghidra.app.plugin.core.reloc.RelocationTableModel$RelocationNameColumn" WIDTH="87" VISIBLE="true" />
+ <COLUMN NAME="ghidra.util.table.field.OffcutReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.ReferenceCountToAddressTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionParameterCountTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.FunctionNameTableColumn" WIDTH="75" VISIBLE="false" />
+ <COLUMN NAME="ghidra.util.table.field.BytesTableColumn" WIDTH="75" VISIBLE="false" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
</TABLE_SORT_STATE>
</Table_State>
</XML>
</PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.pathmanager.PathManagerModel:Use:Path:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Use" WIDTH="50" VISIBLE="true" />
+ <COLUMN NAME="Path" WIDTH="294" VISIBLE="true" />
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
<PREFERENCE_STATE NAME="ghidra.app.plugin.core.symtable.SymbolTableModel:Name:Location:Type:Data Type:Namespace:Source:Reference Count:">
<XML NAME="COLUMN_DATA">
<Table_State>
@@ -879,6 +1053,21 @@
</Table_State>
</XML>
</PREFERENCE_STATE>
+ <PREFERENCE_STATE NAME="docking.widgets.table.DefaultEnumeratedColumnTableModel:Base Address:Max Address:Name:Module Name:Lifespan:Length:">
+ <XML NAME="COLUMN_DATA">
+ <Table_State>
+ <COLUMN NAME="Base Address" WIDTH="85" VISIBLE="true" />
+ <COLUMN NAME="Max Address" WIDTH="84" VISIBLE="true" />
+ <COLUMN NAME="Name" WIDTH="85" VISIBLE="true" />
+ <COLUMN NAME="Module Name" WIDTH="85" VISIBLE="true" />
+ <COLUMN NAME="Lifespan" WIDTH="85" VISIBLE="true" />
+ <COLUMN NAME="Length" WIDTH="85" VISIBLE="true" />
+ <TABLE_SORT_STATE>
+ <COLUMN_SORT_STATE COLUMN_MODEL_INDEX="0" SORT_DIRECTION="ascending" SORT_ORDER="1" />
+ </TABLE_SORT_STATE>
+ </Table_State>
+ </XML>
+ </PREFERENCE_STATE>
</PREFERENCES>
</TOOL>
</TOOL_CONFIG>
diff --git a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsolePluginScreenShots.java b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsolePluginScreenShots.java
new file mode 100644
index 0000000000..e4a8165e28
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsolePluginScreenShots.java
@@ -0,0 +1,77 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.*;
+import org.junit.rules.TestName;
+
+import docking.ActionContext;
+import docking.action.builder.ActionBuilder;
+import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;
+import ghidra.app.plugin.core.debug.gui.DebuggerResources;
+import ghidra.util.Msg;
+import help.screenshot.GhidraScreenShotGenerator;
+
+public class DebuggerConsolePluginScreenShots extends GhidraScreenShotGenerator {
+
+ public static class ScreenShotActionContext extends ActionContext {
+ }
+
+ DebuggerConsolePlugin consolePlugin;
+ DebuggerConsoleProvider consoleProvider;
+
+ @Rule
+ public TestName name = new TestName();
+
+ @Before
+ public void setUpMine() throws Throwable {
+ consolePlugin = addPlugin(tool, DebuggerConsolePlugin.class);
+ consoleProvider = waitForComponentProvider(DebuggerConsoleProvider.class);
+
+ consolePlugin.addResolutionAction(new ActionBuilder("Import", name.getMethodName())
+ .toolBarIcon(DebuggerResources.ICON_IMPORT)
+ .popupMenuIcon(DebuggerResources.ICON_IMPORT)
+ .popupMenuPath("Map")
+ .description("Import")
+ .withContext(ScreenShotActionContext.class)
+ .onAction(ctx -> Msg.info(this, "Import clicked"))
+ .build());
+ consolePlugin.addResolutionAction(new ActionBuilder("Map", name.getMethodName())
+ .toolBarIcon(DebuggerResources.ICON_MODULES)
+ .popupMenuIcon(DebuggerResources.ICON_MODULES)
+ .popupMenuPath("Map")
+ .description("Map")
+ .withContext(ScreenShotActionContext.class)
+ .onAction(ctx -> Msg.info(this, "Map clicked"))
+ .build());
+ }
+
+ @Test
+ public void testCaptureDebuggerConsolePlugin() throws Throwable {
+ Msg.warn(this, "This is a warning message");
+ Msg.error(this, "This is an error message");
+ consolePlugin.log(DebuggerResources.ICON_DEBUGGER,
+ "<html>You can take <b>action</b> to resolve this message</html>",
+ new ScreenShotActionContext());
+
+ AbstractGhidraHeadedDebuggerGUITest
+ .waitForPass(() -> assertEquals(3, consolePlugin.getRowCount(ActionContext.class)));
+
+ captureIsolatedProvider(consoleProvider, 600, 300);
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPluginScreenShots.java b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPluginScreenShots.java
index f70f4dea2c..91a77409ab 100644
--- a/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPluginScreenShots.java
+++ b/Ghidra/Debug/Debugger/src/screen/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingPluginScreenShots.java
@@ -31,7 +31,6 @@ import ghidra.test.ToyProgramBuilder;
import ghidra.trace.database.ToyDBTraceBuilder;
import ghidra.trace.model.memory.TraceMemoryFlag;
import ghidra.trace.model.memory.TraceMemoryRegisterSpace;
-import ghidra.trace.model.modules.TraceModule;
import ghidra.trace.model.symbol.*;
import ghidra.trace.model.thread.TraceThread;
import ghidra.util.database.UndoableTransaction;
@@ -140,36 +139,4 @@ public class DebuggerListingPluginScreenShots extends GhidraScreenShotGenerator
captureDialog(dialog);
}
-
- @Test
- public void testCaptureDebuggerModuleImportDialog() throws Throwable {
- try (UndoableTransaction tid = tb.startTransaction()) {
- long snap = tb.trace.getTimeManager().createSnapshot("First").getKey();
- tb.trace.getMemoryManager()
- .addRegion("bash:.text", Range.atLeast(0L), tb.range(0x00400000, 0x0040ffff),
- Set.of(TraceMemoryFlag.READ, TraceMemoryFlag.EXECUTE));
- tb.trace.getMemoryManager()
- .addRegion("libc:.text", Range.atLeast(0L), tb.range(0x7fac0000, 0x7facffff),
- Set.of(TraceMemoryFlag.READ, TraceMemoryFlag.EXECUTE));
-
- TraceModule bin = tb.trace.getModuleManager()
- .addLoadedModule("/bin/bash", "/bin/bash",
- tb.range(0x00400000, 0x0040ffff), snap);
- bin.addSection("bash[.text]", tb.range(0x00400000, 0x0040ffff));
- TraceModule lib = tb.trace.getModuleManager()
- .addLoadedModule("/lib/libc.so.6", "/lib/libc.so.6",
- tb.range(0x7fac0000, 0x7facffff), snap);
- lib.addSection("libc[.text]", tb.range(0x7fac0000, 0x7facffff));
-
- traceManager.openTrace(tb.trace);
- traceManager.activateTrace(tb.trace);
-
- listingPlugin.goTo(tb.addr(0x7fac1234), true);
- waitForSwing();
- listingPlugin.goTo(tb.addr(0x00401234), true);
- waitForSwing();
-
- captureDialog(DebuggerModuleImportDialog.class);
- }
- }
}
diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsoleProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsoleProviderTest.java
new file mode 100644
index 0000000000..055bebd24d
--- /dev/null
+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/console/DebuggerConsoleProviderTest.java
@@ -0,0 +1,78 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.app.plugin.core.debug.gui.console;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Before;
+import org.junit.Test;
+
+import docking.ActionContext;
+import docking.action.builder.ActionBuilder;
+import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;
+import ghidra.app.plugin.core.debug.gui.DebuggerResources;
+import ghidra.util.Msg;
+
+public class DebuggerConsoleProviderTest extends AbstractGhidraHeadedDebuggerGUITest {
+ DebuggerConsolePlugin consolePlugin;
+ DebuggerConsoleProvider consoleProvider;
+
+ @Before
+ public void setUpConsoleProviderTest() throws Exception {
+ consolePlugin = addPlugin(tool, DebuggerConsolePlugin.class);
+ consoleProvider = waitForComponentProvider(DebuggerConsoleProvider.class);
+ }
+
+ public static class TestConsoleActionContext extends ActionContext {
+
+ }
+
+ @Test
+ public void testActions() throws Exception {
+ consolePlugin.addResolutionAction(new ActionBuilder("Add", name.getMethodName())
+ .toolBarIcon(DebuggerResources.ICON_ADD)
+ .description("Add")
+ .withContext(TestConsoleActionContext.class)
+ .onAction(ctx -> Msg.info(this, "Add clicked"))
+ .build());
+ consolePlugin.addResolutionAction(new ActionBuilder("Delete", name.getMethodName())
+ .popupMenuIcon(DebuggerResources.ICON_DELETE)
+ .popupMenuPath("Delete")
+ .description("Delete")
+ .withContext(TestConsoleActionContext.class)
+ .onAction(ctx -> Msg.info(this, "Delete clicked"))
+ .build());
+
+ consolePlugin.log(DebuggerResources.ICON_DEBUGGER, "<html><b>Test message</b></html>",
+ new TestConsoleActionContext());
+ consolePlugin.log(DebuggerResources.ICON_DEBUGGER, "Test message 2",
+ new TestConsoleActionContext());
+
+ waitForPass(() -> assertEquals(2, consoleProvider.logTable.getRowCount()));
+ }
+
+ @Test
+ public void testHTMLLabel() throws Exception {
+ consolePlugin.log(DebuggerResources.ICON_DEBUGGER,
+ "<html><b>A rather lengthy test message. " +
+ "Here's some more text just to prove it!</b></html>",
+ new TestConsoleActionContext());
+ consolePlugin.log(DebuggerResources.ICON_DEBUGGER, "Test message 2",
+ new TestConsoleActionContext());
+
+ waitForPass(() -> assertEquals(2, consoleProvider.logTable.getRowCount()));
+ }
+}
diff --git a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProviderTest.java b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProviderTest.java
index 32f4ff4dbb..902cc2fadd 100644
--- a/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProviderTest.java
+++ b/Ghidra/Debug/Debugger/src/test/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProviderTest.java
@@ -36,6 +36,8 @@ import ghidra.app.plugin.core.debug.gui.AbstractGhidraHeadedDebuggerGUITest;
import ghidra.app.plugin.core.debug.gui.DebuggerResources;
import ghidra.app.plugin.core.debug.gui.DebuggerResources.AbstractFollowsCurrentThreadAction;
import ghidra.app.plugin.core.debug.gui.action.*;
+import ghidra.app.plugin.core.debug.gui.console.DebuggerConsolePlugin;
+import ghidra.app.plugin.core.debug.gui.modules.DebuggerMissingModuleActionContext;
import ghidra.app.services.*;
import ghidra.app.util.viewer.listingpanel.ListingPanel;
import ghidra.async.SwingExecutorService;
@@ -1078,9 +1080,9 @@ public class DebuggerListingProviderTest extends AbstractGhidraHeadedDebuggerGUI
}
@Test
- public void testActionAutoImportCurrentModuleWithSections() throws Exception {
+ public void testPromptImportCurrentModuleWithSections() throws Exception {
addPlugin(tool, ImporterPlugin.class);
- assertTrue(listingProvider.actionAutoImportCurrentModule.isEnabled());
+ DebuggerConsolePlugin consolePlugin = addPlugin(tool, DebuggerConsolePlugin.class);
createAndOpenTrace();
try (UndoableTransaction tid = tb.startTransaction()) {
@@ -1099,16 +1101,19 @@ public class DebuggerListingProviderTest extends AbstractGhidraHeadedDebuggerGUI
// In the module, but not in its section
listingPlugin.goTo(tb.addr(0x00411234), true);
waitForSwing();
- assertFalse(listingProvider.importDialog.isVisible());
+ waitForPass(() -> assertEquals(0,
+ consolePlugin.getRowCount(DebuggerMissingModuleActionContext.class)));
listingPlugin.goTo(tb.addr(0x00401234), true);
- waitForDialogComponent(DebuggerModuleImportDialog.class);
+ waitForSwing();
+ waitForPass(() -> assertEquals(1,
+ consolePlugin.getRowCount(DebuggerMissingModuleActionContext.class)));
}
@Test
- public void testActionAutoImportCurrentModuleWithoutSections() throws Exception {
+ public void testPromptImportCurrentModuleWithoutSections() throws Exception {
addPlugin(tool, ImporterPlugin.class);
- assertTrue(listingProvider.actionAutoImportCurrentModule.isEnabled());
+ DebuggerConsolePlugin consolePlugin = addPlugin(tool, DebuggerConsolePlugin.class);
createAndOpenTrace();
try (UndoableTransaction tid = tb.startTransaction()) {
@@ -1116,7 +1121,7 @@ public class DebuggerListingProviderTest extends AbstractGhidraHeadedDebuggerGUI
.addRegion("bash:.text", Range.atLeast(0L), tb.range(0x00400000, 0x0041ffff),
Set.of(TraceMemoryFlag.READ, TraceMemoryFlag.EXECUTE));
- TraceModule bin = tb.trace.getModuleManager()
+ tb.trace.getModuleManager()
.addLoadedModule("/bin/bash", "/bin/bash",
tb.range(0x00400000, 0x0041ffff), 0);
@@ -1125,7 +1130,9 @@ public class DebuggerListingProviderTest extends AbstractGhidraHeadedDebuggerGUI
// In the module, but not in its section
listingPlugin.goTo(tb.addr(0x00411234), true);
- waitForDialogComponent(DebuggerModuleImportDialog.class);
+ waitForSwing();
+ waitForPass(() -> assertEquals(1,
+ consolePlugin.getRowCount(DebuggerMissingModuleActionContext.class)));
}
@Test
diff --git a/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/DebuggerConsoleLogger.java b/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/DebuggerConsoleLogger.java
new file mode 100644
index 0000000000..95b53b58e4
--- /dev/null
+++ b/Ghidra/Debug/Framework-Debugging/src/main/java/ghidra/dbg/DebuggerConsoleLogger.java
@@ -0,0 +1,20 @@
+/* ###
+ * IP: GHIDRA
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package ghidra.dbg;
+
+public interface DebuggerConsoleLogger {
+
+}
diff --git a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/TraceDomainObjectListener.java b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/TraceDomainObjectListener.java
index 6f91f6447c..c79a4fea13 100644
--- a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/TraceDomainObjectListener.java
+++ b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/TraceDomainObjectListener.java
@@ -165,7 +165,7 @@ public class TraceDomainObjectListener implements DomainObjectListener {
for (DomainObjectChangeRecord rec : ev) {
if (rec.getEventType() == DomainObject.DO_OBJECT_RESTORED) {
restoredHandler.accept(rec);
- TimedMsg.info(this, " Done: OBJECT_RESTORED");
+ TimedMsg.debug(this, " Done: OBJECT_RESTORED");
return;
}
}
diff --git a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/util/DefaultTraceTimeViewport.java b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/util/DefaultTraceTimeViewport.java
index d91720a553..8a23e06dfb 100644
--- a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/util/DefaultTraceTimeViewport.java
+++ b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/util/DefaultTraceTimeViewport.java
@@ -328,14 +328,16 @@ public class DefaultTraceTimeViewport implements TraceTimeViewport {
@Override
public <T> T getTop(Function<Long, T> func) {
- synchronized (ordered) {
- for (Range<Long> rng : ordered) {
- T t = func.apply(rng.upperEndpoint());
- if (t != null) {
- return t;
+ try (LockHold hold = trace.lockRead()) {
+ synchronized (ordered) {
+ for (Range<Long> rng : ordered) {
+ T t = func.apply(rng.upperEndpoint());
+ if (t != null) {
+ return t;
+ }
}
+ return null;
}
- return null;
}
}
diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/CustomToStringCellRenderer.java b/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/CustomToStringCellRenderer.java
index 2691408886..e0fadc6477 100644
--- a/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/CustomToStringCellRenderer.java
+++ b/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/CustomToStringCellRenderer.java
@@ -18,10 +18,15 @@ package docking.widgets.table;
import java.awt.Component;
import java.awt.Font;
import java.math.BigInteger;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
import java.util.function.BiFunction;
-import javax.swing.JTable;
+import javax.swing.*;
+import javax.swing.plaf.basic.BasicHTML;
import javax.swing.table.TableModel;
+import javax.swing.text.View;
import ghidra.docking.settings.Settings;
import ghidra.util.table.column.AbstractGColumnRenderer;
@@ -40,6 +45,14 @@ public class CustomToStringCellRenderer<T> extends AbstractGColumnRenderer<T> {
return v.signum() < 0 ? "-0x" + v.negate().toString(16) : "0x" + v.toString(16);
}
+ public static final DateFormat TIME_FORMAT_24HMSms = new SimpleDateFormat("HH:mm:ss.SSS");
+
+ public static final CustomToStringCellRenderer<Date> TIME_24HMSms =
+ new CustomToStringCellRenderer<>(CustomFont.DEFAULT, Date.class,
+ (v, s) -> v == null ? "<null>" : TIME_FORMAT_24HMSms.format(v), false);
+ public static final CustomToStringCellRenderer<String> HTML =
+ new CustomToStringCellRenderer<String>(CustomFont.DEFAULT, String.class,
+ (v, s) -> v == null ? "<null>" : v, true);
public static final CustomToStringCellRenderer<Object> MONO_OBJECT =
new CustomToStringCellRenderer<>(CustomFont.MONOSPACED, Object.class,
(v, s) -> v == null ? "<null>" : v.toString(), false);
@@ -60,6 +73,9 @@ public class CustomToStringCellRenderer<T> extends AbstractGColumnRenderer<T> {
private final Class<T> cls;
private final BiFunction<T, Settings, String> toString;
+ private final JPanel panelForSize = new JPanel();
+ private final BoxLayout layoutForSize = new BoxLayout(panelForSize, BoxLayout.Y_AXIS);
+
public CustomToStringCellRenderer(Class<T> cls, BiFunction<T, Settings, String> toString,
boolean enableHtml) {
this(null, cls, toString, enableHtml);
@@ -71,6 +87,8 @@ public class CustomToStringCellRenderer<T> extends AbstractGColumnRenderer<T> {
this.customFont = font;
this.cls = cls;
this.toString = toString;
+
+ panelForSize.setLayout(layoutForSize);
}
@Override
@@ -100,6 +118,21 @@ public class CustomToStringCellRenderer<T> extends AbstractGColumnRenderer<T> {
public Component getTableCellRendererComponent(GTableCellRenderingData data) {
super.getTableCellRendererComponent(data);
setText(toString.apply(cls.cast(data.getValue()), data.getColumnSettings()));
+ if (getHTMLRenderingEnabled()) {
+ setVerticalAlignment(SwingConstants.TOP);
+ }
+ else {
+ setVerticalAlignment(SwingConstants.CENTER);
+ }
return this;
}
+
+ public int getRowHeight(int colWidth) {
+ View v = (View) getClientProperty(BasicHTML.propertyKey);
+ if (v == null) {
+ return 0;
+ }
+ v.setSize(colWidth, Short.MAX_VALUE);
+ return (int) v.getPreferredSpan(View.Y_AXIS);
+ }
}
diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/DefaultEnumeratedColumnTableModel.java b/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/DefaultEnumeratedColumnTableModel.java
index a78eac755c..02408c4c2f 100644
--- a/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/DefaultEnumeratedColumnTableModel.java
+++ b/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/DefaultEnumeratedColumnTableModel.java
@@ -163,18 +163,22 @@ public class DefaultEnumeratedColumnTableModel<C extends Enum<C> & EnumeratedTab
@Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
- R row = modelData.get(rowIndex);
- C col = cols[columnIndex];
- Class<?> cls = col.getValueClass();
- col.setValueOf(row, cls.cast(aValue));
+ synchronized (modelData) {
+ R row = modelData.get(rowIndex);
+ C col = cols[columnIndex];
+ Class<?> cls = col.getValueClass();
+ col.setValueOf(row, cls.cast(aValue));
+ }
fireTableCellUpdated(rowIndex, columnIndex);
}
@Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
- R row = modelData.get(rowIndex);
- C col = cols[columnIndex];
- return col.isEditable(row);
+ synchronized (modelData) {
+ R row = modelData.get(rowIndex);
+ C col = cols[columnIndex];
+ return col.isEditable(row);
+ }
}
@Override
@@ -200,35 +204,47 @@ public class DefaultEnumeratedColumnTableModel<C extends Enum<C> & EnumeratedTab
@Override
public void add(R row) {
- int rowIndex = modelData.size();
- modelData.add(row);
+ int rowIndex;
+ synchronized (modelData) {
+ rowIndex = modelData.size();
+ modelData.add(row);
+ }
fireTableRowsInserted(rowIndex, rowIndex);
}
@Override
public void addAll(Collection<R> c) {
- int startIndex = modelData.size();
- modelData.addAll(c);
- int endIndex = modelData.size() - 1;
+ int startIndex;
+ int endIndex;
+ synchronized (modelData) {
+ startIndex = modelData.size();
+ modelData.addAll(c);
+ endIndex = modelData.size() - 1;
+ }
fireTableRowsInserted(startIndex, endIndex);
}
@Override
public void notifyUpdated(R row) {
- int rowIndex = modelData.indexOf(row);
+ int rowIndex;
+ synchronized (modelData) {
+ rowIndex = modelData.indexOf(row);
+ }
fireTableRowsUpdated(rowIndex, rowIndex);
}
@Override
public List<R> notifyUpdatedWith(Predicate<R> predicate) {
int lastIndexUpdated = 0;
- ListIterator<R> rit = modelData.listIterator();
List<R> updated = new ArrayList<>();
- while (rit.hasNext()) {
- R row = rit.next();
- if (predicate.test(row)) {
- lastIndexUpdated = rit.previousIndex();
- updated.add(row);
+ ListIterator<R> rit = modelData.listIterator();
+ synchronized (modelData) {
+ while (rit.hasNext()) {
+ R row = rit.next();
+ if (predicate.test(row)) {
+ lastIndexUpdated = rit.previousIndex();
+ updated.add(row);
+ }
}
}
int size = updated.size();
@@ -245,25 +261,30 @@ public class DefaultEnumeratedColumnTableModel<C extends Enum<C> & EnumeratedTab
@Override
public void delete(R row) {
- int rowIndex = modelData.indexOf(row);
- if (rowIndex == -1) {
- return;
+ int rowIndex;
+ synchronized (modelData) {
+ rowIndex = modelData.indexOf(row);
+ if (rowIndex == -1) {
+ return;
+ }
+ modelData.remove(rowIndex);
}
- modelData.remove(rowIndex);
fireTableRowsDeleted(rowIndex, rowIndex);
}
@Override
public List<R> deleteWith(Predicate<R> predicate) {
int lastIndexRemoved = 0;
- ListIterator<R> rit = modelData.listIterator();
List<R> removed = new ArrayList<>();
- while (rit.hasNext()) {
- R row = rit.next();
- if (predicate.test(row)) {
- lastIndexRemoved = rit.previousIndex();
- rit.remove();
- removed.add(row);
+ synchronized (modelData) {
+ ListIterator<R> rit = modelData.listIterator();
+ while (rit.hasNext()) {
+ R row = rit.next();
+ if (predicate.test(row)) {
+ lastIndexRemoved = rit.previousIndex();
+ rit.remove();
+ removed.add(row);
+ }
}
}
int size = removed.size();
@@ -280,17 +301,28 @@ public class DefaultEnumeratedColumnTableModel<C extends Enum<C> & EnumeratedTab
@Override
public R findFirst(Predicate<R> predicate) {
- for (R row : modelData) {
- if (predicate.test(row)) {
- return row;
+ synchronized (modelData) {
+ for (R row : modelData) {
+ if (predicate.test(row)) {
+ return row;
+ }
}
+ return null;
}
- return null;
}
@Override
public void clear() {
- modelData.clear();
+ synchronized (modelData) {
+ modelData.clear();
+ }
fireTableDataChanged();
}
+
+ @Override
+ protected void sort(List<R> data, TableSortingContext<R> sortingContext) {
+ synchronized (data) {
+ super.sort(data, sortingContext);
+ }
+ }
}
diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/RowWrappedEnumeratedColumnTableModel.java b/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/RowWrappedEnumeratedColumnTableModel.java
index 9eb08aa349..42359588fb 100644
--- a/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/RowWrappedEnumeratedColumnTableModel.java
+++ b/Ghidra/Debug/ProposedUtils/src/main/java/docking/widgets/table/RowWrappedEnumeratedColumnTableModel.java
@@ -47,8 +47,12 @@ public class RowWrappedEnumeratedColumnTableModel<C extends Enum<C> & Enumerated
return map.computeIfAbsent(keyFunc.apply(t), k -> wrapper.apply(t));
}
- protected synchronized R delFor(T t) {
- return map.remove(keyFunc.apply(t));
+ protected R delFor(T t) {
+ return delKey(keyFunc.apply(t));
+ }
+
+ protected synchronized R delKey(K k) {
+ return map.remove(k);
}
protected synchronized List<R> rowsFor(Collection<? extends T> c) {
@@ -79,9 +83,15 @@ public class RowWrappedEnumeratedColumnTableModel<C extends Enum<C> & Enumerated
delete(delFor(t));
}
+ public R deleteKey(K k) {
+ R r = delKey(k);
+ delete(r);
+ return r;
+ }
+
public synchronized void deleteAllItems(Collection<T> c) {
deleteWith(rowsFor(c)::contains);
- map.keySet().removeAll(c);
+ map.keySet().removeAll(c.stream().map(keyFunc).collect(Collectors.toList()));
}
public synchronized Map<K, R> getMap() {
diff --git a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/TimedMsg.java b/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/TimedMsg.java
index a4a9f18f18..cb97b77ab7 100644
--- a/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/TimedMsg.java
+++ b/Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/TimedMsg.java
@@ -34,7 +34,7 @@ public class TimedMsg {
}
}
- public static void info(Object originator, String message) {
- doMsg(Msg::info, originator, message);
+ public static void debug(Object originator, String message) {
+ doMsg(Msg::debug, originator, message);
}
}