GDB (API)
|
00001 /* Common target dependent code Alpha BSD's. 00002 00003 Copyright (C) 2000-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 #include "defs.h" 00021 #include "regcache.h" 00022 00023 #include "alpha-tdep.h" 00024 #include "alphabsd-tdep.h" 00025 00026 /* Conviently, GDB uses the same register numbering as the 00027 ptrace register structure used by BSD on Alpha. */ 00028 00029 void 00030 alphabsd_supply_reg (struct regcache *regcache, const char *regs, int regno) 00031 { 00032 /* PC is at slot 32; UNIQUE not present. */ 00033 alpha_supply_int_regs (regcache, regno, regs, regs + 31 * 8, NULL); 00034 } 00035 00036 void 00037 alphabsd_fill_reg (const struct regcache *regcache, char *regs, int regno) 00038 { 00039 /* PC is at slot 32; UNIQUE not present. */ 00040 alpha_fill_int_regs (regcache, regno, regs, regs + 31 * 8, NULL); 00041 } 00042 00043 void 00044 alphabsd_supply_fpreg (struct regcache *regcache, 00045 const char *fpregs, int regno) 00046 { 00047 /* FPCR is at slot 33; slot 32 unused. */ 00048 alpha_supply_fp_regs (regcache, regno, fpregs, fpregs + 32 * 8); 00049 } 00050 00051 void 00052 alphabsd_fill_fpreg (const struct regcache *regcache, char *fpregs, int regno) 00053 { 00054 /* FPCR is at slot 33; slot 32 unused. */ 00055 alpha_fill_fp_regs (regcache, regno, fpregs, fpregs + 32 * 8); 00056 }