| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |