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

Side by Side Diff: gdb/alphaobsd-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/alphanbsd-tdep.c ('k') | gdb/amd64-darwin-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 OpenBSD/alpha. 1 /* Target-dependent code for OpenBSD/alpha.
2 2
3 Copyright (C) 2006-2012 Free Software Foundation, Inc. 3 Copyright (C) 2006-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 29 matching lines...) Expand all
40 static const int alphaobsd_page_size = 8192; 40 static const int alphaobsd_page_size = 8192;
41 41
42 static LONGEST 42 static LONGEST
43 alphaobsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc) 43 alphaobsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
44 { 44 {
45 return (pc & (alphaobsd_page_size - 1)); 45 return (pc & (alphaobsd_page_size - 1));
46 } 46 }
47 47
48 static int 48 static int
49 alphaobsd_pc_in_sigtramp (struct gdbarch *gdbarch, 49 alphaobsd_pc_in_sigtramp (struct gdbarch *gdbarch,
50 » » » CORE_ADDR pc, char *name) 50 » » » CORE_ADDR pc, const char *name)
51 { 51 {
52 CORE_ADDR start_pc = (pc & ~(alphaobsd_page_size - 1)); 52 CORE_ADDR start_pc = (pc & ~(alphaobsd_page_size - 1));
53 unsigned insn; 53 unsigned insn;
54 54
55 if (name) 55 if (name)
56 return 0; 56 return 0;
57 57
58 /* Check for "". */ 58 /* Check for "". */
59 insn = alpha_read_insn (gdbarch, start_pc + 5 * ALPHA_INSN_SIZE); 59 insn = alpha_read_insn (gdbarch, start_pc + 5 * ALPHA_INSN_SIZE);
60 if (insn != 0x201f0067) 60 if (insn != 0x201f0067)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 /* Provide a prototype to silence -Wmissing-prototypes. */ 131 /* Provide a prototype to silence -Wmissing-prototypes. */
132 void _initialize_alphaobsd_tdep (void); 132 void _initialize_alphaobsd_tdep (void);
133 133
134 void 134 void
135 _initialize_alphaobsd_tdep (void) 135 _initialize_alphaobsd_tdep (void)
136 { 136 {
137 gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD_ELF, 137 gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD_ELF,
138 alphaobsd_init_abi); 138 alphaobsd_init_abi);
139 } 139 }
OLDNEW
« no previous file with comments | « gdb/alphanbsd-tdep.c ('k') | gdb/amd64-darwin-tdep.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698