| OLD | NEW |
| 1 /* Target-dependent code for GNU/Linux on Alpha. | 1 /* Target-dependent code for GNU/Linux on Alpha. |
| 2 Copyright (C) 2002-2003, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 2002-2003, 2007-2012 Free Software Foundation, Inc. |
| 3 | 3 |
| 4 This file is part of GDB. | 4 This file is part of GDB. |
| 5 | 5 |
| 6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
| 7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
| 9 (at your option) any later version. | 9 (at your option) any later version. |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 continue; | 85 continue; |
| 86 if (alpha_linux_sigtramp_offset_1 (gdbarch, pc + i) != i) | 86 if (alpha_linux_sigtramp_offset_1 (gdbarch, pc + i) != i) |
| 87 return -1; | 87 return -1; |
| 88 } | 88 } |
| 89 | 89 |
| 90 return off; | 90 return off; |
| 91 } | 91 } |
| 92 | 92 |
| 93 static int | 93 static int |
| 94 alpha_linux_pc_in_sigtramp (struct gdbarch *gdbarch, | 94 alpha_linux_pc_in_sigtramp (struct gdbarch *gdbarch, |
| 95 » » » CORE_ADDR pc, char *func_name) | 95 » » » CORE_ADDR pc, const char *func_name) |
| 96 { | 96 { |
| 97 return alpha_linux_sigtramp_offset (gdbarch, pc) >= 0; | 97 return alpha_linux_sigtramp_offset (gdbarch, pc) >= 0; |
| 98 } | 98 } |
| 99 | 99 |
| 100 static CORE_ADDR | 100 static CORE_ADDR |
| 101 alpha_linux_sigcontext_addr (struct frame_info *this_frame) | 101 alpha_linux_sigcontext_addr (struct frame_info *this_frame) |
| 102 { | 102 { |
| 103 struct gdbarch *gdbarch = get_frame_arch (this_frame); | 103 struct gdbarch *gdbarch = get_frame_arch (this_frame); |
| 104 CORE_ADDR pc; | 104 CORE_ADDR pc; |
| 105 ULONGEST sp; | 105 ULONGEST sp; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 /* Provide a prototype to silence -Wmissing-prototypes. */ | 241 /* Provide a prototype to silence -Wmissing-prototypes. */ |
| 242 extern initialize_file_ftype _initialize_alpha_linux_tdep; | 242 extern initialize_file_ftype _initialize_alpha_linux_tdep; |
| 243 | 243 |
| 244 void | 244 void |
| 245 _initialize_alpha_linux_tdep (void) | 245 _initialize_alpha_linux_tdep (void) |
| 246 { | 246 { |
| 247 gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_LINUX, | 247 gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_LINUX, |
| 248 alpha_linux_init_abi); | 248 alpha_linux_init_abi); |
| 249 } | 249 } |
| OLD | NEW |