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

Side by Side Diff: gdb/amd64-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/amd64-nat.h ('k') | gdb/amd64-sol2-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 AMD64. 1 /* Native-dependent code for AMD64.
2 2
3 Copyright (C) 2003-2004, 2007-2012 Free Software Foundation, Inc. 3 Copyright (C) 2003-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 "gdbarch.h" 21 #include "gdbarch.h"
22 #include "regcache.h" 22 #include "regcache.h"
23 23
24 #include "gdb_assert.h" 24 #include "gdb_assert.h"
25 #include "gdb_string.h" 25 #include <string.h>
26 26
27 #include "i386-tdep.h" 27 #include "i386-tdep.h"
28 #include "amd64-tdep.h" 28 #include "amd64-tdep.h"
29 #include "amd64-nat.h" 29 #include "amd64-nat.h"
30 30
31 /* The following bits of code help with implementing debugging 32-bit 31 /* The following bits of code help with implementing debugging 32-bit
32 code natively on AMD64. The idea is to define two mappings between 32 code natively on AMD64. The idea is to define two mappings between
33 the register number as used by GDB and the register set used by the 33 the register number as used by GDB and the register set used by the
34 host to represent the general-purpose registers; one for 32-bit 34 host to represent the general-purpose registers; one for 32-bit
35 code and one for 64-bit code. The mappings are specified by the 35 code and one for 64-bit code. The mappings are specified by the
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 { 153 {
154 if (regnum == -1 || regnum == i) 154 if (regnum == -1 || regnum == i)
155 { 155 {
156 int offset = amd64_native_gregset_reg_offset (gdbarch, i); 156 int offset = amd64_native_gregset_reg_offset (gdbarch, i);
157 157
158 if (offset != -1) 158 if (offset != -1)
159 regcache_raw_collect (regcache, i, regs + offset); 159 regcache_raw_collect (regcache, i, regs + offset);
160 } 160 }
161 } 161 }
162 } 162 }
OLDNEW
« no previous file with comments | « gdb/amd64-nat.h ('k') | gdb/amd64-sol2-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698