Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: gdb/tilegx-linux-nat.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/tic6x-tdep.c ('k') | gdb/tilegx-linux-tdep.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « gdb/tic6x-tdep.c ('k') | gdb/tilegx-linux-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698