OLD | NEW |
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, 2007-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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 static int | 59 static int |
60 vaxobsd_sigtramp_sniffer (const struct frame_unwind *self, | 60 vaxobsd_sigtramp_sniffer (const struct frame_unwind *self, |
61 struct frame_info *this_frame, | 61 struct frame_info *this_frame, |
62 void **this_cache) | 62 void **this_cache) |
63 { | 63 { |
64 CORE_ADDR pc = get_frame_pc (this_frame); | 64 CORE_ADDR pc = get_frame_pc (this_frame); |
65 CORE_ADDR start_pc = (pc & ~(vaxobsd_page_size - 1)); | 65 CORE_ADDR start_pc = (pc & ~(vaxobsd_page_size - 1)); |
66 CORE_ADDR sigreturn_addr = start_pc + vaxobsd_sigreturn_offset; | 66 CORE_ADDR sigreturn_addr = start_pc + vaxobsd_sigreturn_offset; |
67 gdb_byte *buf; | 67 gdb_byte *buf; |
68 char *name; | 68 const char *name; |
69 | 69 |
70 find_pc_partial_function (pc, &name, NULL, NULL); | 70 find_pc_partial_function (pc, &name, NULL, NULL); |
71 if (name) | 71 if (name) |
72 return 0; | 72 return 0; |
73 | 73 |
74 buf = alloca(sizeof vaxobsd_sigreturn); | 74 buf = alloca(sizeof vaxobsd_sigreturn); |
75 if (!safe_frame_unwind_memory (this_frame, sigreturn_addr, | 75 if (!safe_frame_unwind_memory (this_frame, sigreturn_addr, |
76 buf, sizeof vaxobsd_sigreturn)) | 76 buf, sizeof vaxobsd_sigreturn)) |
77 return 0; | 77 return 0; |
78 | 78 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |