shell - shell 命令的 GDB 别名
问题描述
当我使用 gdb 时,我想通过运行 shell 脚本(例如“./scripts/build.sh”)来重建程序,所以我通过命令分配了别名:
alias build = 'shell ./scripts/build.sh'
但发生错误
Invalid command to alias to: shell ./scripts/build.sh
我应该怎么办 ?
解决方案
alias
定义一个新命令,它是现有命令的别名。shell ./scripts/build.sh
不是和现有的命令。
改为这样做:
(gdb) define build
> shell ./scripts/build.sh
> end
推荐阅读
- function - Go 自定义模板函数的参数
- android - 如何让'framework.jar'在Android Studio北极狐上的'android.jar'前面编译
- typescript - 如何从 d.ts 中提取选定的类型以创建新的类型文件,即新的 d.ts 文件
- javascript - 图表 js 填充不适用于数据标签
- wordpress - 子域地址不断重定向
- haskell - 在 SBV 中解决算术问题时如何避免 IO monad
- google-apps-script - 我正在尝试自动将过滤器应用于列 - 并按该列按降序对工作表进行排序
- reactjs - 如何避免嵌套地图以获得更好的渲染性能?
- django - Django 仅针对具有相同结构的多个类中的 1 个模型类抛出“列不存在错误”
- django - 如何在使用 Material Design Layout() 功能的 Django CreateView 上放置验证码