From b44dbb9ea584c8be6894ee3d2e63a31bd5c5678b Mon Sep 17 00:00:00 2001 From: Alena Laskavaia Date: Mon, 19 Jan 2015 20:47:40 -0500 Subject: [PATCH] Enhanced Expressions: menu for add locals and registers in dsf Added a popup menu in expressions menu to add locals group and registers group - for discoverability of this feature. The menus are added to generic dsf but the command handlers added to the gdb plugin, just in case somebody wants to implement this for another dsf based debugger Change-Id: Iab64e2a9f3a0c81f8bac939a2a5e94c67ef1daba --- dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/plugin.xml | 20 ++++++++++ .../AddLocalsExpressionCommandHandler.java | 35 +++++++++++++++++ .../AddRegistersExpressionCommandHandler.java | 23 +++++++++++ dsf/org.eclipse.cdt.dsf.ui/plugin.properties | 6 +++ dsf/org.eclipse.cdt.dsf.ui/plugin.xml | 38 +++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/commands/AddLocalsExpressionCommandHandler.java create mode 100644 dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/commands/AddRegistersExpressionCommandHandler.java diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/plugin.xml b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/plugin.xml index f71579cc5a3..bd5a3c38b6f 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/plugin.xml +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/plugin.xml @@ -355,6 +355,26 @@ + + + + + + + + + + + + + + Local Variables +command.addRegisters.name=Add Expression Group > Registers + command.refreshAll.name=Refresh Debug Views command.refreshAll.description=Refresh all data in debug views diff --git a/dsf/org.eclipse.cdt.dsf.ui/plugin.xml b/dsf/org.eclipse.cdt.dsf.ui/plugin.xml index ff1d4933573..3e296015d9c 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/plugin.xml +++ b/dsf/org.eclipse.cdt.dsf.ui/plugin.xml @@ -255,6 +255,31 @@ + + + + + + + + + + + + + + + + @@ -578,6 +604,18 @@ id="org.eclipse.cdt.dsf.debug.ui.disassembly.commands.rulerToggleBreakpoint" name="%command.rulerToggleBreakpoint.name"> + + + +