| OLD | NEW |
| 1 /* Native-dependent code for GNU/Linux TILE-Gx. | 1 /* Native-dependent code for GNU/Linux TILE-Gx. |
| 2 | 2 |
| 3 Copyright (C) 2012 Free Software Foundation, Inc. | 3 Copyright (C) 2012-2013 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
| 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 |
| 20 #include "defs.h" | 20 #include "defs.h" |
| 21 #include "inferior.h" | 21 #include "inferior.h" |
| 22 #include "gdbcore.h" | 22 #include "gdbcore.h" |
| 23 #include "regcache.h" | 23 #include "regcache.h" |
| 24 #include "linux-nat.h" | 24 #include "linux-nat.h" |
| 25 | 25 |
| 26 #include <sys/ptrace.h> | 26 #include <sys/ptrace.h> |
| 27 | 27 |
| 28 #include "gdb_assert.h" | 28 #include "gdb_assert.h" |
| 29 #include "gdb_string.h" | 29 #include <string.h> |
| 30 | 30 |
| 31 #include <sys/procfs.h> | 31 #include <sys/procfs.h> |
| 32 | 32 |
| 33 #include "gdb_proc_service.h" | 33 #include "gdb_proc_service.h" |
| 34 #include <sys/ptrace.h> | 34 #include <sys/ptrace.h> |
| 35 | 35 |
| 36 /* Prototypes for supply_gregset etc. */ | 36 /* Prototypes for supply_gregset etc. */ |
| 37 #include "gregset.h" | 37 #include "gregset.h" |
| 38 | 38 |
| 39 /* Defines ps_err_e, struct ps_prochandle. */ | 39 /* Defines ps_err_e, struct ps_prochandle. */ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 58 static const int regmap[] = | 58 static const int regmap[] = |
| 59 { | 59 { |
| 60 0, 1, 2, 3, 4, 5, 6, 7, | 60 0, 1, 2, 3, 4, 5, 6, 7, |
| 61 8, 9, 10, 11, 12, 13, 14, 15, | 61 8, 9, 10, 11, 12, 13, 14, 15, |
| 62 16, 17, 18, 19, 20, 21, 22, 23, | 62 16, 17, 18, 19, 20, 21, 22, 23, |
| 63 24, 25, 26, 27, 28, 29, 30, 31, | 63 24, 25, 26, 27, 28, 29, 30, 31, |
| 64 32, 33, 34, 35, 36, 37, 38, 39, | 64 32, 33, 34, 35, 36, 37, 38, 39, |
| 65 40, 41, 42, 43, 44, 45, 46, 47, | 65 40, 41, 42, 43, 44, 45, 46, 47, |
| 66 48, 49, 50, 51, 52, 53, 54, 55, | 66 48, 49, 50, 51, 52, 53, 54, 55, |
| 67 -1, -1, -1, -1, -1, -1, -1, -1, | 67 -1, -1, -1, -1, -1, -1, -1, -1, |
| 68 56 | 68 56, 58 |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 /* Transfering the general-purpose registers between GDB, inferiors | 71 /* Transfering the general-purpose registers between GDB, inferiors |
| 72 and core files. */ | 72 and core files. */ |
| 73 | 73 |
| 74 /* Fill GDB's register array with the general-purpose register values | 74 /* Fill GDB's register array with the general-purpose register values |
| 75 in *GREGSETP. */ | 75 in *GREGSETP. */ |
| 76 | 76 |
| 77 void | 77 void |
| 78 supply_gregset (struct regcache* regcache, | 78 supply_gregset (struct regcache* regcache, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 /* Fill in the generic GNU/Linux methods. */ | 178 /* Fill in the generic GNU/Linux methods. */ |
| 179 t = linux_target (); | 179 t = linux_target (); |
| 180 | 180 |
| 181 /* Add our register access methods. */ | 181 /* Add our register access methods. */ |
| 182 t->to_fetch_registers = fetch_inferior_registers; | 182 t->to_fetch_registers = fetch_inferior_registers; |
| 183 t->to_store_registers = store_inferior_registers; | 183 t->to_store_registers = store_inferior_registers; |
| 184 | 184 |
| 185 /* Register the target. */ | 185 /* Register the target. */ |
| 186 linux_nat_add_target (t); | 186 linux_nat_add_target (t); |
| 187 } | 187 } |
| OLD | NEW |