15796c8dcSSimon Schubert /* Native-dependent code for AMD64. 25796c8dcSSimon Schubert 3*ef5ccd6cSJohn Marino Copyright (C) 2003-2013 Free Software Foundation, Inc. 45796c8dcSSimon Schubert 55796c8dcSSimon Schubert This file is part of GDB. 65796c8dcSSimon Schubert 75796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 85796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 95796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 105796c8dcSSimon Schubert (at your option) any later version. 115796c8dcSSimon Schubert 125796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 135796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 145796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 155796c8dcSSimon Schubert GNU General Public License for more details. 165796c8dcSSimon Schubert 175796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 185796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 195796c8dcSSimon Schubert 205796c8dcSSimon Schubert #ifndef AMD64_NAT_H 215796c8dcSSimon Schubert #define AMD64_NAT_H 1 225796c8dcSSimon Schubert 235796c8dcSSimon Schubert struct regcache; 245796c8dcSSimon Schubert 255796c8dcSSimon Schubert /* General-purpose register set description for native 32-bit code. */ 265796c8dcSSimon Schubert extern int *amd64_native_gregset32_reg_offset; 275796c8dcSSimon Schubert extern int amd64_native_gregset32_num_regs; 285796c8dcSSimon Schubert 295796c8dcSSimon Schubert /* General-purpose register set description for native 64-bit code. */ 305796c8dcSSimon Schubert extern int *amd64_native_gregset64_reg_offset; 315796c8dcSSimon Schubert extern int amd64_native_gregset64_num_regs; 325796c8dcSSimon Schubert 335796c8dcSSimon Schubert /* Return whether the native general-purpose register set supplies 345796c8dcSSimon Schubert register REGNUM. */ 355796c8dcSSimon Schubert 365796c8dcSSimon Schubert extern int amd64_native_gregset_supplies_p (struct gdbarch *gdbarch, 375796c8dcSSimon Schubert int regnum); 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert /* Supply register REGNUM, whose contents are store in BUF, to 405796c8dcSSimon Schubert REGCACHE. If REGNUM is -1, supply all appropriate registers. */ 415796c8dcSSimon Schubert 425796c8dcSSimon Schubert extern void amd64_supply_native_gregset (struct regcache *regcache, 435796c8dcSSimon Schubert const void *gregs, int regnum); 445796c8dcSSimon Schubert 455796c8dcSSimon Schubert /* Collect register REGNUM from REGCACHE and store its contents in 465796c8dcSSimon Schubert GREGS. If REGNUM is -1, collect and store all appropriate 475796c8dcSSimon Schubert registers. */ 485796c8dcSSimon Schubert 495796c8dcSSimon Schubert extern void amd64_collect_native_gregset (const struct regcache *regcache, 505796c8dcSSimon Schubert void *gregs, int regnum); 515796c8dcSSimon Schubert 525796c8dcSSimon Schubert /* Create a prototype *BSD/amd64 target. The client can override it 535796c8dcSSimon Schubert with local methods. */ 545796c8dcSSimon Schubert 555796c8dcSSimon Schubert extern struct target_ops *amd64bsd_target (void); 565796c8dcSSimon Schubert 575796c8dcSSimon Schubert #endif /* amd64-nat.h */ 58