GDB (API)
/home/stan/gdb/src/gdb/aarch64-newlib-tdep.c
Go to the documentation of this file.
00001 /* Target-dependent code for Newlib AArch64.
00002 
00003    Copyright (C) 2011-2013 Free Software Foundation, Inc.
00004    Contributed by ARM Ltd.
00005 
00006    This file is part of GDB.
00007 
00008    This program is free software; you can redistribute it and/or modify
00009    it under the terms of the GNU General Public License as published by
00010    the Free Software Foundation; either version 3 of the License, or
00011    (at your option) any later version.
00012 
00013    This program is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016    GNU General Public License for more details.
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00020 
00021 #include "defs.h"
00022 
00023 #include "gdbarch.h"
00024 #include "aarch64-tdep.h"
00025 #include "osabi.h"
00026 
00027 /* Implement the 'init_osabi' method of struct gdb_osabi_handler.  */
00028 
00029 static void
00030 aarch64_newlib_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
00031 {
00032   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
00033 
00034   /* Jump buffer - support for longjmp.
00035      Offset of original PC in jump buffer (in registers).  */
00036   tdep->jb_pc = 11;
00037 }
00038 
00039 /* Provide a prototype to silence -Wmissing-prototypes.  */
00040 extern initialize_file_ftype _initialize_aarch64_newlib_tdep;
00041 
00042 void
00043 _initialize_aarch64_newlib_tdep (void)
00044 {
00045   gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_NEWLIB,
00046                           aarch64_newlib_init_abi);
00047 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines