- updates so bochs compiles when the debugger is enabled

This commit is contained in:
Christophe Bothamy 2004-01-04 13:13:45 +00:00
parent edd830cbb4
commit f1e558a39d
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: dbg_main.cc,v 1.2 2003-12-07 23:34:48 cbothamy Exp $
// $Id: dbg_main.cc,v 1.3 2004-01-04 13:13:45 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -43,6 +43,7 @@ extern "C" {
}
#endif
static unsigned doit = 0;
#define SIM_NAME0 "bochs"
@ -2381,6 +2382,8 @@ bx_dbg_compare_sim_memory(void)
#endif
static disassembler bx_disassemble;
void bx_dbg_disassemble_current (int which_cpu, int print_time)
{
Bit32u phy;
@ -2408,6 +2411,7 @@ void bx_dbg_disassemble_current (int which_cpu, int print_time)
Base=BX_CPU(which_cpu)->sregs[BX_SEG_REG_CS].selector.value<<4;
}
ilen = bx_disassemble.disasm(BX_CPU(which_cpu)->guard_found.is_32bit_code,
Base, BX_CPU(which_cpu)->guard_found.eip, bx_disasm_ibuf, bx_disasm_tbuf);

View File

@ -1,6 +1,6 @@
#include <stdio.h>
#include <assert.h>
#include "disasm.h"
#include "../bochs.h"
//////////////////
// Intel STYLE