tests/runner/MIResults.cs
/// <summary>
/// GDB (on x86) sometimes returns a tuple list in a context requiring a tuple (&lt;MULTIPLE&gt; breakpoints).
/// The grammar does not allow this, but we recognize it and accept it only in the special case when it is contained
/// in a result value.
///     tuplelist --  tuple ("," tuple)*
///     value -- const | tuple | tuplelist | list
/// </summary>
/// <returns></returns>
GDB (on x86) sometimes returns a tuple list in a context requiring a tuple ( breakpoints).
The grammar does not allow this, but we recognize it and accept it only in the special case when it is contained
in a result value.
GDB ( on x86 ) sometimes returns a tuple list in a context requiring a tuple ( breakpoints ) . The grammar does not allow this but we recognize it and accept it only in the special case when it is contained in a result value .
private ResultValue ParseResultValue(Span resultStr, out Span rest)
        {
            ResultValue value = null;
            rest = Span.Empty;
            if (resultStr.IsEmpty)
            {
                return null;
            }
            switch (_resultString[resultStr.Start])
            {
                case '\"':
                    value = ParseCString(resultStr, out rest);
                    break;
                case '{':
                    value = ParseResultTuple(resultStr, out rest);
                    break;
                case '[':
                    value = ParseList(resultStr, out rest);
                    break;
                default:
                    ParseError("unexpected char", resultStr);
                    break;
            }
            return value;
        }
private ResultValue ParseResultValue ( Span resultStr , out Span rest ) { ResultValue value = null ; rest = Span . Empty ; if ( resultStr . IsEmpty ) { return null ; } switch ( _resultString [ resultStr . Start ] ) { case ' \" ' : value = ParseCString ( resultStr , out rest ) ; break ; case ' ' : value = ParseResultTuple ( resultStr , out rest ) ; break ; case ' ' : value = ParseList ( resultStr , out rest ) ; break ; default : ParseError ( " " , resultStr ) ; break ; } return value ; }
GDB (on x86) sometimes returns a tuple list in a context requiring a tuple (<MULTIPLE> breakpoints).
GDB ( on x86 ) sometimes returns a tuple list in a context requiring a tuple ( <MULTIPLE > breakpoints ) .
None
resultStr
Span
Span
out