小编vka*_*ats的帖子

VBoxManage列表vm详细信息(存储)

我想从命令行列出VirtualBox VM的详细信息- 而不是从GUI.我对存储细节特别感兴趣.

当我在GUI中单击VM时,我可以看到包括存储部分在内的详细信息:

在此输入图像描述

但到目前为止,我还没有找到通过命令行执行此操作的方法.

我是在16.04并使用

VBoxManage --version
5.1.22r115126
Run Code Online (Sandbox Code Playgroud)

virtualbox

7
推荐指数
1
解决办法
6218
查看次数

gdb捕获系统调用条件和字符串比较

我想进行catch系统调用(更具体地讲access)并condition基于字符串比较(显然是字符串参数)在其上设置一个。

具体示例:调试时,ls我想捕获access特定路径名的系统调用(第一个参数)

int访问(const char *路径名,int模式);

到目前为止,我已经成功地手动检查了pathname参数access(请参阅参考资料[1])。

我试图使用此博客文章:

catch syscall access
condition 1 strcmp((char*)($rdi), "/etc/ld.so.preload") == 0
Run Code Online (Sandbox Code Playgroud)

但是失败了(请参阅[2]参考资料),因为gdb通知了我一个段错误和那个Evaluation of the expression containing the function (strcmp@plt) will be abandoned.。但是gdb建议set unwindonsignal on。

我试过了

set unwindonsignal on
catch syscall access
condition 1 strcmp((char*)($rdi), "/etc/ld.so.preload") == 0
Run Code Online (Sandbox Code Playgroud)

但又失败了(请参阅[3]),并出现了类似的错误和建议set unwindonsignal off...

我搜索了The program being debugged …

linux debugging gdb system-calls

3
推荐指数
1
解决办法
1195
查看次数

标签 统计

debugging ×1

gdb ×1

linux ×1

system-calls ×1

virtualbox ×1