GDB和Python:如何禁用Python作为

2024-04-26 14:28:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我用bash(.sh)脚本运行GDB,它确实需要sudo/super-user访问,它工作得很好,但是有一个问题,每次我用这个脚本运行GDB时,在GDB加载可执行文件之前,它会询问使用superuser运行python。我想删除这个要求/问题。在

我想删除这个:

WARNING: Phyton has been executed as super user! It is recommended to run as a normal user. Continue? (y/N)

我在我自己编译的ubuntuserver12.x上使用gdb7.9。在

Ps:在另一个ubuntu服务器(version15)中,gdb(version7.9)使用相同的脚本和访问权限不会问这个问题。在


Tags: 脚本bash可执行文件asshsudohasbeen
1条回答
网友
1楼 · 发布于 2024-04-26 14:28:14

使用批处理命令行选项运行gdb。这将禁用所有确认请求。您也可以运行命令“set confirm off”

相关问题 更多 >