Skip to main content
summaryrefslogtreecommitdiffstats
path: root/memory
diff options
context:
space:
mode:
authorJohn Cortell2010-05-18 11:44:54 -0400
committerJohn Cortell2010-05-18 11:44:54 -0400
commit36e5cb14279f4c83ab27e9896f23e79e73ba158e (patch)
treee910f3c4cee044050766d6a059b4ac98aa7f882b /memory
parent34caecd0e1b95f1e98651412595872a6a2392d27 (diff)
downloadorg.eclipse.cdt-36e5cb14279f4c83ab27e9896f23e79e73ba158e.tar.gz
org.eclipse.cdt-36e5cb14279f4c83ab27e9896f23e79e73ba158e.tar.xz
org.eclipse.cdt-36e5cb14279f4c83ab27e9896f23e79e73ba158e.zip
Bug 309032: Need APIs to support memory pages (or memory spaces). Don't show memory spaces if there are less than two memory spaces.
Diffstat (limited to 'memory')
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
index 1b6d3e9338..0927bc6b4b 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
@@ -771,7 +771,10 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
return;
}
- if (memorySpaces.length > 0) {
+ // Don't expose the memory spaces widget if there are none or
+ // only one memory space involved.
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=309032#c50
+ if (memorySpaces.length >= 2) {
fGotoMemorySpaceControl.setItems(memorySpaces);
fGotoMemorySpaceControl.add(NA_MEMORY_SPACE_ID, 0); //$NON-NLS-1$ the n/a entry; don't think this needs to be translated
setMemorySpaceControlVisible(true);

Back to the top