带代码的 gdb 拆分视图 [英] gdb split view with code

查看:10
本文介绍了带代码的 gdb 拆分视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在 gdb 中调试一个程序,不知怎的,我发现了一个我以前从未见过甚至听说过的新功能,一个拆分视图,除了给出命令之外,我还可以查看和浏览代码:

I was just debugging a program in gdb and somehow I found a new feature I've never seen or even heard of before, a split view where I can see and browse the code in addition to giving commands:

这是什么?我做了什么,或者更具体地说,我怎样才能再次获得这种分屏模式?这种模式是否有名称,或者我可以在某处了解如何使用它?

What is this? What did I do, or, more specifically, how can I get this split-screen mode again? Is there a name for this mode, or somewhere I can read about how to use it?

推荐答案

这就是所谓的 TUI(不开玩笑).例如,从 gdbtuigdb -tui ...

It's called the TUI (no kidding). Start for example with gdbtui or gdb -tui ...

另请参阅此答案/users/895245">Ciro Santilli.据我所知,它在 2012 年不可用,但绝对值得一看.

Please also see this answer by Ciro Santilli. It wasn't available in 2012 to the best of my knowledge, but definitely worth a look.

这篇关于带代码的 gdb 拆分视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆