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

Side by Side Diff: gdb/hppanbsd-tdep.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 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/hppa-tdep.c ('k') | gdb/i386-cygwin-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 /* Target-dependent code for NetBSD/hppa 1 /* Target-dependent code for NetBSD/hppa
2 2
3 Copyright (C) 2008-2012 Free Software Foundation, Inc. 3 Copyright (C) 2008-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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 /* Supply register REGNUM from the buffer specified by GREGS and LEN 162 /* Supply register REGNUM from the buffer specified by GREGS and LEN
163 in the general-purpose register set REGSET to register cache 163 in the general-purpose register set REGSET to register cache
164 REGCACHE. If REGNUM is -1, do this for all registers in REGSET. */ 164 REGCACHE. If REGNUM is -1, do this for all registers in REGSET. */
165 165
166 static void 166 static void
167 hppanbsd_supply_gregset (const struct regset *regset, 167 hppanbsd_supply_gregset (const struct regset *regset,
168 struct regcache *regcache, 168 struct regcache *regcache,
169 int regnum, const void *gregs, size_t len) 169 int regnum, const void *gregs, size_t len)
170 { 170 {
171 const gdb_byte *regs = gregs; 171 const gdb_byte *regs = gregs;
172 size_t offset;
173 int i; 172 int i;
174 173
175 gdb_assert (len >= HPPANBSD_SIZEOF_GREGS); 174 gdb_assert (len >= HPPANBSD_SIZEOF_GREGS);
176 175
177 for (i = 0; i < ARRAY_SIZE (hppanbsd_reg_offset); i++) 176 for (i = 0; i < ARRAY_SIZE (hppanbsd_reg_offset); i++)
178 if (hppanbsd_reg_offset[i] != -1) 177 if (hppanbsd_reg_offset[i] != -1)
179 if (regnum == -1 || regnum == i) 178 if (regnum == -1 || regnum == i)
180 regcache_raw_supply (regcache, i, regs + hppanbsd_reg_offset[i]); 179 regcache_raw_supply (regcache, i, regs + hppanbsd_reg_offset[i]);
181 } 180 }
182 181
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 218
220 /* Provide a prototype to silence -Wmissing-prototypes. */ 219 /* Provide a prototype to silence -Wmissing-prototypes. */
221 extern initialize_file_ftype _initialize_hppanbsd_tdep; 220 extern initialize_file_ftype _initialize_hppanbsd_tdep;
222 221
223 void 222 void
224 _initialize_hppanbsd_tdep (void) 223 _initialize_hppanbsd_tdep (void)
225 { 224 {
226 gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_NETBSD_ELF, 225 gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_NETBSD_ELF,
227 hppanbsd_init_abi); 226 hppanbsd_init_abi);
228 } 227 }
OLDNEW
« no previous file with comments | « gdb/hppa-tdep.c ('k') | gdb/i386-cygwin-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698