mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Bug 309032: Need APIs to support memory pages (or memory spaces). Don't show memory spaces if there are less than two memory spaces.
This commit is contained in:
parent
34caecd0e1
commit
36e5cb1427
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue