Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2017-03-07 09:36:21 -0500
committerGerrit Code Review @ Eclipse.org2017-03-07 15:26:57 -0500
commit87c75513e07744deb75dd7c025422854094831cc (patch)
tree1eda9adcba85869aada974faa9d6afb30501b42b /dsf-gdb
parentcf51cb6b13aae738151452197ea40bc5d4927b61 (diff)
downloadorg.eclipse.cdt-87c75513e07744deb75dd7c025422854094831cc.tar.gz
org.eclipse.cdt-87c75513e07744deb75dd7c025422854094831cc.tar.xz
org.eclipse.cdt-87c75513e07744deb75dd7c025422854094831cc.zip
Bug 400628: Add extra info to error message
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java
index 8e54bb5d97..3c664e3a85 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpoints.java
@@ -906,12 +906,14 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints, I
*
* @since 4.4
*/
- protected void addDynamicPrintf(final IBreakpointsTargetDMContext context, final Map<String, Object> attributes, final DataRequestMonitor<IBreakpointDMContext> drm) {
- // Not supported
- drm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, REQUEST_FAILED, UNKNOWN_BREAKPOINT_TYPE, null));
+ protected void addDynamicPrintf(final IBreakpointsTargetDMContext context, final Map<String, Object> attributes,
+ final DataRequestMonitor<IBreakpointDMContext> drm) {
+ // Not supported
+ drm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, REQUEST_FAILED,
+ "Dynamic-Printf usage in CDT requires GDB 7.7 or later", null)); //$NON-NLS-1$
drm.done();
}
-
+
//-------------------------------------------------------------------------
// removeBreakpoint
//-------------------------------------------------------------------------

Back to the top