2002-02-19 Daniel Jacobowitz <drow@mvista.com>
[deliverable/binutils-gdb.git] / gdb / x86-64-tdep.h
CommitLineData
53e95fcf
JS
1/* Target-dependent code for GDB, the GNU debugger.
2 Copyright 2001
3 Free Software Foundation, Inc.
4 Contributed by Jiri Smid, SuSE Labs.
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
22
23#ifndef X86_64_TDEP_H
24#define X86_64_TDEP_H
25
26#include "i386-tdep.h"
27#include <sys/reg.h>
28
29/* Mapping between the general-purpose registers in `struct user'
30 format and GDB's register array layout. */
31
32static int x86_64_regmap[] = {
33 RAX, RDX, RCX, RBX,
34 RSI, RDI, RBP, RSP,
35 R8, R9, R10, R11,
36 R12, R13, R14, R15,
37 RIP, EFLAGS
38};
39
40/* Number of all registers */
41#define X86_64_NUM_REGS (51)
42
43/* Number of general registers. */
44#define X86_64_NUM_GREGS (18)
45
46gdbarch_frame_saved_pc_ftype x86_64_linux_frame_saved_pc;
47gdbarch_saved_pc_after_call_ftype x86_64_linux_saved_pc_after_call;
48
49#endif
This page took 0.071556 seconds and 4 git commands to generate.