ia64/xen-unstable

view tools/debugger/pdb/pdb_caml_xen.h @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 fa0754a9f64f
children dfaf788ab18c
line source
1 /*
2 * pdb_caml_xen.h
3 *
4 * http://www.cl.cam.ac.uk/netos/pdb
5 *
6 * generic xen definitions
7 *
8 */
10 #ifndef _PDB_CAML_XEN_DEFINED_
11 #define _PDB_CAML_XEN_DEFINED_
13 enum gdb_registers { /* 32 */ GDB_EAX, GDB_ECX, GDB_EDX, GDB_EBX,
14 GDB_ESP, GDB_EBP, GDB_ESI, GDB_EDI,
15 GDB_EIP, GDB_EFL,
16 /* 16 */ GDB_CS, GDB_SS, GDB_DS, GDB_ES,
17 GDB_FS, GDB_GS };
18 #define GDB_REGISTER_FRAME_SIZE 16
20 /* this order comes from linux-2.6.11/include/asm-i386/ptrace.h */
21 enum x86_registers { LINUX_EBX, LINUX_ECX, LINUX_EDX, LINUX_ESI, LINUX_EDI,
22 LINUX_EBP, LINUX_EAX, LINUX_DS, LINUX_ES, LINUX_FS,
23 LINUX_GS, LINUX_ORIG_EAX, LINUX_EIP, LINUX_CS, LINUX_EFL,
24 LINUX_ESP, LINUX_SS };
25 #define REGISTER_FRAME_SIZE 17
28 /* hack: this is also included from the pdb linux module which
29 has PAGE_SIZE defined */
30 #ifndef PAGE_SIZE
31 #define PAGE_SIZE 4096
32 #endif
34 extern int xc_handle;
36 void dump_regs (cpu_user_regs_t *ctx);
38 #endif