OLD | NEW |
1 /* Register support routines for the remote server for GDB. | 1 /* Register support routines for the remote server for GDB. |
2 Copyright (C) 2001-2002, 2004-2005, 2007-2012 Free Software | 2 Copyright (C) 2001-2002, 2004-2005, 2007-2012 Free Software |
3 Foundation, Inc. | 3 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 "server.h" | 20 #include "server.h" |
21 #include "regdef.h" | 21 #include "regdef.h" |
| 22 #include "gdbthread.h" |
22 | 23 |
23 #include <stdlib.h> | 24 #include <stdlib.h> |
24 #include <string.h> | 25 #include <string.h> |
25 | 26 |
26 static int register_bytes; | 27 static int register_bytes; |
27 | 28 |
28 static struct reg *reg_defs; | 29 static struct reg *reg_defs; |
29 static int num_registers; | 30 static int num_registers; |
30 | 31 |
31 const char **gdbserver_expedite_regs; | 32 const char **gdbserver_expedite_regs; |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 regcache_write_pc (struct regcache *regcache, CORE_ADDR pc) | 422 regcache_write_pc (struct regcache *regcache, CORE_ADDR pc) |
422 { | 423 { |
423 if (the_target->write_pc) | 424 if (the_target->write_pc) |
424 the_target->write_pc (regcache, pc); | 425 the_target->write_pc (regcache, pc); |
425 else | 426 else |
426 internal_error (__FILE__, __LINE__, | 427 internal_error (__FILE__, __LINE__, |
427 "regcache_write_pc: Unable to update PC"); | 428 "regcache_write_pc: Unable to update PC"); |
428 } | 429 } |
429 | 430 |
430 #endif | 431 #endif |
OLD | NEW |