]> git.saurik.com Git - apple/xnu.git/blame - osfmk/i386/gdb_defs.h
xnu-792.6.56.tar.gz
[apple/xnu.git] / osfmk / i386 / gdb_defs.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
ff6e181a
A
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
1c79356b 12 *
ff6e181a
A
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
ff6e181a
A
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
1c79356b
A
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23/*
24 * @OSF_COPYRIGHT@
25 *
26 */
27
28#ifndef _I386_GDB_DEFS_H_
29#define _I386_GDB_DEFS_H_
30
31/*
32 * GDB DEPENDENT DEFINITIONS
33 *
34 * The following definitions match data descriptions in the gdb source file
35 * gdb/include/AT386/tm.h. They cannot be independently modified.
36 */
37
38typedef struct {
39 unsigned int eax;
40 unsigned int ecx;
41 unsigned int edx;
42 unsigned int ebx;
43 unsigned int esp;
44 unsigned int ebp;
45 unsigned int esi;
46 unsigned int edi;
47 unsigned int eip;
48 unsigned int efl;
49 unsigned int cs;
50 unsigned int ss;
51 unsigned int ds;
52 unsigned int es;
53 unsigned int fs;
54 unsigned int gs;
55 unsigned int reason;
56} kgdb_regs_t;
57
58#define NUM_REGS 16
59#define REGISTER_BYTES (NUM_REGS * 4)
60
61#endif /* _I386_GDB_DEFS_H_ */
62