Fwd: building gdb with TUI support on Windows

69 views
Skip to first unread message

xunxun

unread,
Dec 26, 2014, 2:35:30 PM12/26/14
to Code::Blocks中国开发组, asmwarrior
这个TUI是什么意思?干什么用的?

---------- Forwarded message ----------
From: Ofir Cohen <ofirc...@gmail.com>
Date: 2014-12-26 8:13 GMT+08:00
Subject: building gdb with TUI support on Windows
To: g...@sourceware.org


Hi guys,
I'm trying to build gdb from source with TUI support on Windows.
I'm using msys2 with MinGWx64.
It seems non-trivial, and is accompanied by undesired behavior.

I'm addressing this mailing list after a long period of trying by myself
and because I couldn't find a decent place where this could be solved.

I manage to build by commenting out tputs() implementation in
gdb/windows-termcap.c
(so the ncurses tputs is used instead).

However,
when I run: "gdb --tui"
from msys2 I get a "TUI mode not supported".

When I run it from DOS (with mingw64 paths in the PATH), it runs but I
cannot move the text

cursor to left arrow and right arrow), and even more annoying, I can't
use the CTRL+R

(history lookup).

I saw some post about gdb with TUI support on Windows:
http://migeel.sk/blog/2009/04/15/compiling-gdb-under-windows/

But it didn't help.

Do you have any idea how to get it done right?

P.S. this is how I build
export FLAGS="--enable-tui=no --with-expat --disable-gdbserver
--with-sysroot=\"remote:\" --build=x86_64-w64-mingw32"
./configure $FLAGS
make -j 8

Your help is very much appreciated =].

Thanks,
Ofir Cohen



--
Best Regards,
xunxun

asm warrior

unread,
Dec 26, 2014, 9:20:18 PM12/26/14
to xunxun, Code::Blocks中国开发组
TUI 就是基于TK GUI的图形化的GDB界面,这个是GDB自己的原生的图形界面(注意,这个TUI和insight好像是不同的东西),我给你找个图片看看。
http://www.based.com/wc/wp-content/uploads/2010/04/cgdb3.png
理论上Windows下也能用,因为TK GUI是跨平台的。

xunxun

unread,
Dec 27, 2014, 6:07:50 AM12/27/14
to asm warrior, Code::Blocks中国开发组
挺有意思的 我还以为只有IDB才有这种GUI
--
Best Regards,
xunxun

asm warrior

unread,
Dec 27, 2014, 9:08:42 AM12/27/14
to xunxun, Code::Blocks中国开发组
IDB? IDE吧?呵呵

xunxun

unread,
Dec 27, 2014, 10:43:07 AM12/27/14
to asm warrior, Code::Blocks中国开发组
我是说的Intel出的调试工具 就叫idb 他自己也带一个GUI
--
Best Regards,
xunxun
Reply all
Reply to author
Forward
0 new messages