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

Side by Side Diff: gdb/vaxobsd-tdep.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/vaxnbsd-tdep.c ('k') | gdb/version.h » ('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/vax. 1 /* Target-dependent code for OpenBSD/vax.
2 2
3 Copyright (C) 2005, 2007-2012 Free Software Foundation, Inc. 3 Copyright (C) 2005-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 "arch-utils.h" 21 #include "arch-utils.h"
22 #include "frame.h" 22 #include "frame.h"
23 #include "frame-unwind.h" 23 #include "frame-unwind.h"
24 #include "osabi.h" 24 #include "osabi.h"
25 #include "symtab.h" 25 #include "symtab.h"
26 #include "trad-frame.h" 26 #include "trad-frame.h"
27 27
28 #include "vax-tdep.h" 28 #include "vax-tdep.h"
29 29
30 #include "gdb_string.h" 30 #include <string.h>
31 31
32 /* Signal trampolines. */ 32 /* Signal trampolines. */
33 33
34 /* Since OpenBSD 3.2, the sigtramp routine is mapped at a random page 34 /* Since OpenBSD 3.2, the sigtramp routine is mapped at a random page
35 in virtual memory. The randomness makes it somewhat tricky to 35 in virtual memory. The randomness makes it somewhat tricky to
36 detect it, but fortunately we can rely on the fact that the start 36 detect it, but fortunately we can rely on the fact that the start
37 of the sigtramp routine is page-aligned. We recognize the 37 of the sigtramp routine is page-aligned. We recognize the
38 trampoline by looking for the code that invokes the sigreturn 38 trampoline by looking for the code that invokes the sigreturn
39 system call. The offset where we can find that code varies from 39 system call. The offset where we can find that code varies from
40 release to release. 40 release to release.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 void 174 void
175 _initialize_vaxobsd_tdep (void) 175 _initialize_vaxobsd_tdep (void)
176 { 176 {
177 gdbarch_register_osabi_sniffer (bfd_arch_vax, bfd_target_aout_flavour, 177 gdbarch_register_osabi_sniffer (bfd_arch_vax, bfd_target_aout_flavour,
178 vaxobsd_aout_osabi_sniffer); 178 vaxobsd_aout_osabi_sniffer);
179 179
180 gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_OPENBSD_AOUT, 180 gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_OPENBSD_AOUT,
181 vaxobsd_init_abi); 181 vaxobsd_init_abi);
182 } 182 }
OLDNEW
« no previous file with comments | « gdb/vaxnbsd-tdep.c ('k') | gdb/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698