X86: Single stepping

This patch enables the user land to use the CPU's single stepping mode on
x86_32 platforms. It is needed to enable the use of GDB monitor for
user-level debugging.

Was: 'foc_single_step_x86.patch'
This commit is contained in:
Sebastian Sumpf
2013-01-11 17:29:20 +01:00
parent c9830dbc1e
commit 10d7926ce0
8 changed files with 90 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ public:
{
Exr_cancel = 0x10000,
Exr_trigger_exception = 0x20000,
Exr_single_step = 0x40000,
};
enum Vcpu_ctl_flags
@@ -139,6 +140,8 @@ public:
inline Mword user_flags() const;
inline void user_single_step(bool);
/** nesting level in debugger (always critical) if >1 */
static Per_cpu<unsigned long> nested_trap_recover;
static void handle_remote_requests_irq() asm ("handle_remote_cpu_requests");