File: extdb.h

package info (click to toggle)
bochs 2.3-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,116 kB
  • ctags: 16,927
  • sloc: cpp: 130,524; ansic: 18,822; sh: 7,922; makefile: 3,836; yacc: 1,056; asm: 463; perl: 381; lex: 280; csh: 3
file content (38 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/////////////////////////////////////////////////////////////////////////
// $Id: extdb.h,v 1.9 2006/06/25 21:44:46 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////

#ifndef EXTDB_H
#define EXTDB_H

typedef struct {
  Bit64u base;
  Bit16u limit;
  Bit16u fill[3];
} descbase;

typedef struct {
        Bit64u rax,rcx,rdx,rbx,rsp,rbp,rsi,rdi,
               r8,r9,r10,r11,r12,r13,r14,r15,
               rip,rflags;
        Bit32u es,cs,ss,ds,fs,gs,tr,ldt;
        Bit64u cr0,cr1,cr2,cr3,cr4,cr5,cr6,cr7;
        Bit64u fsbase,gsbase;
        descbase gdt,idt;
        Bit32u efer;
        Bit32u debug_eip,debug_cs,debug_counter;
        Bit8u debug_state;
#define debug_step        0
#define debug_run         1
#define debug_count       2
#define debug_skip        3
} TRegs;

extern TRegs regs;

extern char debug_loaded;

void bx_external_debugger(BX_CPU_C *cpu);
void trap_debugger(bx_bool callnow);

#endif