在Virtual Box中调试Guest OS的工具 [英] Tool to Debug Guest OS in Virtual Box

查看:116
本文介绍了在Virtual Box中调试Guest OS的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是交叉发布与在virtualbox.org上所做的相同问题. http://forums.virtualbox.org/viewtopic .php?f = 9& t = 26702& p = 119139#p119139

I'm just cross posting the same question I did on virtualbox.org. http://forums.virtualbox.org/viewtopic.php?f=9&t=26702&p=119139#p119139

如果不违反任何规则,我将不胜感激,因为stackoverflow可能会更加动态!

If not breaking any rule, I'd appreciate to kwon more about it since stackoverflow promisses to be more dynamic!

我进行了一些搜索,但没有找到任何工具可以从虚拟盒中的早期启动中调试来宾系统.虽然,我遇到了JCP,这是Java中的x86模拟器,功能虽然不那么强大和美观,但具有一种调试模式,可以在其中查看物理内存,而CPU在其他方面进行注册.它还可以逐步执行CPU指令,并设置断点,观察点和有条件的断点.虚拟盒子里有这样的东西吗?

"Hi, I did some search and could not find any tool to debug a guest system from the early boot in virtual box. Although, I came across JCP, a x86 emulator in java that is not so powerful and beautyful but has a debug mode where one can view the Physical Memory, the CPU registers along other things. It also makes it possible to execute CPU instructions step by step and set break points, watchpoints and conditional ones. There's such thing in Virtual Box?

我认为拥有它并能够在系统运行时对其进行检查会很棒.用于了解PC架构或作为开发内核的工具.

I think would be amazing to have it and be able to inspect the system while its running. For learn about PC architecture or as a tool to develop a kernel as well.

在您认为它的好主意(我认为是)的情况下,如何实现它?我对开发此类产品感兴趣,并且想知道如果尚未在某处实施的话是否可行."

In the case you think its good idea (I think it is) how can it be achieved? I'm interested in develop such sort o things and would like to know if it is feasible if not already implemented somewhere."

EDT:现代的x86是否能够在cpu循环后立即中断其执行,并将执行addres传递给另一个代码来做到这一点?是的,可以设置陷阱标志以使处理器进入逐步执行模式. x86将执行一条指令并调用INT 3.

EDT: Are modern x86 able to interrupt its execution just after a cpu cycle and pass execution addres to another code to just do this? Yes, the trap flag can be set to put the processor in step by step execution mode. x86 will execute one instruction and call INT 3.

推荐答案

OSDev Wiki 具有一些有用的功能有关调试来宾操作系统的信息,尽管根据此页面而言,VirtualBox目前没有调试器.我一直在将QEmu与 GDB存根一起使用,并且效果很好,所以您可能希望给出代替.

The OSDev wiki has some useful information on debugging a guest operating system, though according to this page VirtualBox doesn't have a debugger at present. I've been using QEmu with the GDB stub and it works quite nicely, so you might like to give that a go instead.

这篇关于在Virtual Box中调试Guest OS的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆