Menu

#1366 Fix recent GDB generating ANSI escape sequences

Next_Release
fixed
nobody
gdb (10)
Bug_Report
2023-01-26
2023-01-25
No

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.

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2023-01-25

    Proposed patch, comments welcome.

     
  • bluehazzard

    bluehazzard - 2023-01-25

    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 ;)

     
  • Miguel Gimenez

    Miguel Gimenez - 2023-01-26
    • status: open --> fixed
     
  • Miguel Gimenez

    Miguel Gimenez - 2023-01-26

    Thanks for the comment. Fixed in [r13162].

     

    Related

    Commit: [r13162]


Log in to post a comment.