gpt4 book ai didi

configuration - 有没有办法将 dbx 配置为将空白命令视为上一个命令的重复?

转载 作者:行者123 更新时间:2023-12-03 23:32:23 25 4
gpt4 key购买 nike

在 gdb 中,如果我只是按回车键,它会重复上一个命令。有没有办法配置 Sun/Oracle/Solaris dbx 来做同样的事情?

最佳答案

看起来您可以为此使用 $repeatmode 。
我从 dbx-guide 得到以下信息

Repeating Commands

You can execute any of the commands contained in the history list. Each
history command begins with an exclamation point (!):

!! Repeats the previous command. If the value of the dbx
variable $repeatmode is set to 1, then entering a carriage
return at an empty line is equivalent to executing !!. By
default, $repeatmode is set to 0.

似乎还有另一个选项 'gdb on' 使 dbx 表现得像 gdb。我也没有尝试过,因为我现在无法访问 dbx,所以您可以告诉我这是否适合您。

关于configuration - 有没有办法将 dbx 配置为将空白命令视为上一个命令的重复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10742005/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com