Further investigation reveals that this is actually an upstream cgdb
0.6.7 deficiency.  Newer GDBs do output coloring, which cgdb can deal
with starting with version 0.7.0.  In other words, when Ubuntu moved to
a newer GDB version, it should also have bumped cgdb to 0.7.0 or newer.

Possible workarounds:

 -  Disable GDB colors when running cgdb:
    cgdb -ex 'set style enabled off' a.out
    (probably use a bash alias cgdb="cgdb -ex 'set style enabled off'")
    
    GDB still uses colors while it starts up, but doesn't during use.

 -  Disable GDB colors permanently: add "set style enabled off" to
~/.gdbinit

For a proper fix, Ubuntu should switch to cgdb 0.7.0 or newer.  See also
bug #1826319.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850993

Title:
  cgdb shows escape sequence fragments instead of colors in gdb terminal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cgdb/+bug/1850993/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to