From c7fa27d89bd643fb427c8f5d51707f2e438e0a4a Mon Sep 17 00:00:00 2001 From: and3md Date: Sun, 9 Apr 2017 15:56:22 +0200 Subject: [PATCH 1/2] Fix local variables parsing issue #192 --- src/ddebug/gdb/gdbinterface.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddebug/gdb/gdbinterface.d b/src/ddebug/gdb/gdbinterface.d index f767f14..7cd2182 100644 --- a/src/ddebug/gdb/gdbinterface.d +++ b/src/ddebug/gdb/gdbinterface.d @@ -783,7 +783,7 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget { command = "-stack-list-locals --thread " ~ to!string(_threadId) ~ " --frame " ~ to!string(_frameId) ~ " 1"; } override void onResult() { - DebugVariableList variables = parseVariableList(params); + DebugVariableList variables = parseVariableList(params,"locals"); if (variables) { // TODO Log.d("Variable list is parsed: " ~ to!string(variables)); From 8e1dab322bdf76e3413caa708a94af9403de7b04 Mon Sep 17 00:00:00 2001 From: and3md Date: Mon, 10 Apr 2017 18:15:47 +0200 Subject: [PATCH 2/2] Space after comma (correct coding style). --- src/ddebug/gdb/gdbinterface.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddebug/gdb/gdbinterface.d b/src/ddebug/gdb/gdbinterface.d index 7cd2182..9c69bb0 100644 --- a/src/ddebug/gdb/gdbinterface.d +++ b/src/ddebug/gdb/gdbinterface.d @@ -783,7 +783,7 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget { command = "-stack-list-locals --thread " ~ to!string(_threadId) ~ " --frame " ~ to!string(_frameId) ~ " 1"; } override void onResult() { - DebugVariableList variables = parseVariableList(params,"locals"); + DebugVariableList variables = parseVariableList(params, "locals"); if (variables) { // TODO Log.d("Variable list is parsed: " ~ to!string(variables));