diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java index dc11d539c6f..ec9a76a2433 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/commands/MICommand.java @@ -342,6 +342,11 @@ public class MICommand implements ICommand { builder.insert(0, '"'); builder.append('"'); } + + // an empty parameter can be passed with two single quotes + if (value.isEmpty()) { + builder.append("''"); //$NON-NLS-1$ + } return builder.toString(); }