From f614c5b44e6082fa7f0d84f6eff072d11a450766 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 10 Jun 2004 14:31:19 +0000 Subject: [PATCH] Added support for gdb's "value" `Variable "x" is not available.'. --- kdbg/gdbdriver.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp index 1cd8aef..2c49ae4 100644 --- a/kdbg/gdbdriver.cpp +++ b/kdbg/gdbdriver.cpp @@ -1103,6 +1103,7 @@ repeat: // (E *) 0xbffff450 // red // &parseP (HTMLClueV *, char *) + // Variable "x" is not available. const char*p = s; @@ -1193,6 +1194,13 @@ repeat: if (*p == '(') { skipNested(p, '(', ')'); } + } else if (strncmp(p, "Variable \"", 10) == 0) { + // Variable "x" is not available. + p += 10; // skip to " + skipName(p); + if (strncmp(p, "\" is not available.", 19) == 0) { + p += 19; + } } else { // must be an enumeration value skipName(p); -- 2.11.4.GIT