gdb 9.1 and its use of colors not seen in cgdb

46 views
Skip to first unread message

M Kelly

unread,
Feb 11, 2020, 8:07:25 PM2/11/20
to cgdb-dev
Hi,

Thank you for cgdb, it is awesome.  I use it almost every day.

With gdb 9.1 just released it now uses colors in the stack trace and threads list etc.
(at least that is new to me if this was in previous gdb versions)
In cgdb this coloring is not shown in the gdb window, and I see my gdb prompt with an escape code.
I'll go dig and try to figure out what ansi esc seq etc they are using that cgdb (or my cgdb) is not picking up.
Does anyone else see this or know more ?

thx,
-m


Robert Rossi

unread,
Feb 11, 2020, 8:15:28 PM2/11/20
to cgdb...@googlegroups.com
The newest version of CGDB should support this. Let us know.

--
You received this message because you are subscribed to the Google Groups "cgdb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgdb-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cgdb-dev/4a698ad7-da38-49f5-8285-137caa4b5e36%40googlegroups.com.

M Kelly

unread,
Feb 11, 2020, 8:23:12 PM2/11/20
to cgdb-dev
Hi,

I think its something new ??  I use cgdb master.  Here is latest commit in my copy -

commit 8c2f3a2a632d63366eef419fabf3e8245d9b7a45 (HEAD -> master, origin/master, origin/HEAD)
Date:   Wed Feb 5 20:22:50 2020 -0500
    Updated NEWS for the resolution of issue #219.

I used gdb 8.3 ok until I upgraded to 9.1 today.
I didn't think gdb 8.3 colored the stack and thread list before ??

thx,
-m

M Kelly

unread,
Feb 11, 2020, 9:18:11 PM2/11/20
to cgdb-dev
Hi,

Not sure if it matters yet, but -
I think gdb-9.1 uses a new readline v8.0 now.
And my cgdb is using the system installed readline v6.3

-m

M Kelly

unread,
Feb 12, 2020, 11:39:39 AM2/12/20
to cgdb-dev
Hi,

ok, I did go back and see gdb 8.3 shows stack and thread list in color, sorry I didn't realize that.
So then I think 1). my cgdb does not show these in color for both gdb 8.3 and 9.1 and 2). with gdb 9.1 my gdb prompt inside cgdb has some esc chars in it. (but not with 8.3)
I'll try to figure out what to do.  Let me know if you have any ideas/suggestions.

thx,
-m

M Kelly

unread,
Feb 12, 2020, 10:14:12 PM2/12/20
to cgdb-dev
Hi,

ok the esc codes on the (gdb) prompt are from bracketed-paste-mode.
I guess this shows up now becuase previous 8.3 gdb used readline 6 and gdb 9.1 uses readline 8 and that supports bracketed-paste-mode now.
I will try to figure out how to not echo these in cgdb.

So other than that it would be great to have the color support in the gdb window like 8.3/9.1 has.
I'll look at that at some point.

thx,
-m

Reply all
Reply to author
Forward
0 new messages