Skip to content

Invalid escape sequence #3

@gil-n

Description

@gil-n

hi,

I'm getting an MI parse error: message:"Invalid escape sequence" when calling: evalExpression("(ptr->data)" )

GDB return the following string: "17^done,value="0x5d2310 '\253' <repeats 16 times>"
The problem is that string contains invalid js escape sequence with \253 which causing the MI parser to fail.

A possible fix: modify GDB.prototype._line_output_handler function by adding:
line = line.replace('\'', '\\')

Thanks,
Gil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions