| OLD | NEW |
| 1 /* Target-dependent code for NetBSD/amd64. | 1 /* Target-dependent code for NetBSD/amd64. |
| 2 | 2 |
| 3 Copyright (C) 2003-2004, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2003-2004, 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 /* Support for signal handlers. */ | 33 /* Support for signal handlers. */ |
| 34 | 34 |
| 35 /* Return whether THIS_FRAME corresponds to a NetBSD sigtramp | 35 /* Return whether THIS_FRAME corresponds to a NetBSD sigtramp |
| 36 routine. */ | 36 routine. */ |
| 37 | 37 |
| 38 static int | 38 static int |
| 39 amd64nbsd_sigtramp_p (struct frame_info *this_frame) | 39 amd64nbsd_sigtramp_p (struct frame_info *this_frame) |
| 40 { | 40 { |
| 41 CORE_ADDR pc = get_frame_pc (this_frame); | 41 CORE_ADDR pc = get_frame_pc (this_frame); |
| 42 char *name; | 42 const char *name; |
| 43 | 43 |
| 44 find_pc_partial_function (pc, &name, NULL, NULL); | 44 find_pc_partial_function (pc, &name, NULL, NULL); |
| 45 return nbsd_pc_in_sigtramp (pc, name); | 45 return nbsd_pc_in_sigtramp (pc, name); |
| 46 } | 46 } |
| 47 | 47 |
| 48 /* Assuming THIS_FRAME corresponds to a NetBSD sigtramp routine, | 48 /* Assuming THIS_FRAME corresponds to a NetBSD sigtramp routine, |
| 49 return the address of the associated mcontext structure. */ | 49 return the address of the associated mcontext structure. */ |
| 50 | 50 |
| 51 static CORE_ADDR | 51 static CORE_ADDR |
| 52 amd64nbsd_mcontext_addr (struct frame_info *this_frame) | 52 amd64nbsd_mcontext_addr (struct frame_info *this_frame) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 void | 129 void |
| 130 _initialize_amd64nbsd_tdep (void) | 130 _initialize_amd64nbsd_tdep (void) |
| 131 { | 131 { |
| 132 /* The NetBSD/amd64 native dependent code makes this assumption. */ | 132 /* The NetBSD/amd64 native dependent code makes this assumption. */ |
| 133 gdb_assert (ARRAY_SIZE (amd64nbsd_r_reg_offset) == AMD64_NUM_GREGS); | 133 gdb_assert (ARRAY_SIZE (amd64nbsd_r_reg_offset) == AMD64_NUM_GREGS); |
| 134 | 134 |
| 135 gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, | 135 gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, |
| 136 GDB_OSABI_NETBSD_ELF, amd64nbsd_init_abi); | 136 GDB_OSABI_NETBSD_ELF, amd64nbsd_init_abi); |
| 137 } | 137 } |
| OLD | NEW |