我想从命令行列出VirtualBox VM的详细信息- 而不是从GUI.我对存储细节特别感兴趣.
当我在GUI中单击VM时,我可以看到包括存储部分在内的详细信息:
但到目前为止,我还没有找到通过命令行执行此操作的方法.
我是在16.04并使用
VBoxManage --version
5.1.22r115126
Run Code Online (Sandbox Code Playgroud) 我想进行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 …