As reported in the forum recent GDB generate ANSI escape sequences by default. This inteferes with output parsing.
The fix is calling set style enabled off
during initialization. This call can be made always or after testing GDB version, depending on driver capabilities.
I do not know the minimal version supporting this, 8.1 does not support the command while 10.2 does.
Proposed patch, comments welcome.
I think this is the best solution for now.
I made a quick test with an "unsupported" gdb command and it simply throws an error, but debugging worked still fine, so it would be fine to hardcode this.
Using MI or language protocol would be the better solution ;)
Thanks for the comment. Fixed in [r13162].
Related
Commit: [r13162]