OLD | NEW |
1 /* Xtensa GNU/Linux native support. | 1 /* Xtensa GNU/Linux native support. |
2 | 2 |
3 Copyright (C) 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2007-2012 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. |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include <sys/ptrace.h> | 39 #include <sys/ptrace.h> |
40 | 40 |
41 #include "gregset.h" | 41 #include "gregset.h" |
42 #include "xtensa-tdep.h" | 42 #include "xtensa-tdep.h" |
43 | 43 |
44 /* Extended register set depends on hardware configs. | 44 /* Extended register set depends on hardware configs. |
45 Keeping these definitions separately allows to introduce | 45 Keeping these definitions separately allows to introduce |
46 hardware-specific overlays. */ | 46 hardware-specific overlays. */ |
47 #include "xtensa-xtregs.c" | 47 #include "xtensa-xtregs.c" |
48 | 48 |
49 int | 49 static int |
50 get_thread_id (ptid_t ptid) | 50 get_thread_id (ptid_t ptid) |
51 { | 51 { |
52 int tid = TIDGET (ptid); | 52 int tid = TIDGET (ptid); |
53 if (0 == tid) | 53 if (0 == tid) |
54 tid = PIDGET (ptid); | 54 tid = PIDGET (ptid); |
55 return tid; | 55 return tid; |
56 } | 56 } |
57 #define GET_THREAD_ID(PTID) get_thread_id (PTID) | 57 #define GET_THREAD_ID(PTID) get_thread_id (PTID) |
58 | 58 |
59 void | 59 void |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 /* Fill in the generic GNU/Linux methods. */ | 316 /* Fill in the generic GNU/Linux methods. */ |
317 t = linux_target (); | 317 t = linux_target (); |
318 | 318 |
319 /* Add our register access methods. */ | 319 /* Add our register access methods. */ |
320 t->to_fetch_registers = xtensa_linux_fetch_inferior_registers; | 320 t->to_fetch_registers = xtensa_linux_fetch_inferior_registers; |
321 t->to_store_registers = xtensa_linux_store_inferior_registers; | 321 t->to_store_registers = xtensa_linux_store_inferior_registers; |
322 | 322 |
323 linux_nat_add_target (t); | 323 linux_nat_add_target (t); |
324 } | 324 } |
OLD | NEW |