]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/cris-linux-tdep.c
sim: riscv: Fix build issue due to recent binutils commit
[thirdparty/binutils-gdb.git] / gdb / cris-linux-tdep.c
CommitLineData
749c8b38
RW
1/* Target-dependent code for GNU/Linux on CRIS processors, for GDB.
2
1d506c26 3 Copyright (C) 2001-2024 Free Software Foundation, Inc.
749c8b38
RW
4
5 Contributed by Axis Communications AB.
6 Written by Hendrik Ruijter, Stefan Andersson, Orjan Friberg,
7 Edgar Iglesias and Ricard Wanderlof.
8
9 This file is part of GDB.
10
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23
d55e5aa6 24#include "osabi.h"
4de283e4 25#include "linux-tdep.h"
749c8b38
RW
26#include "solib-svr4.h"
27#include "symtab.h"
0d12e84c 28#include "gdbarch.h"
749c8b38 29
4de283e4
TT
30#include "cris-tdep.h"
31
749c8b38
RW
32static void
33cris_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
34{
08106042 35 cris_gdbarch_tdep *tdep = gdbarch_tdep<cris_gdbarch_tdep> (gdbarch);
749c8b38 36
480af54c 37 linux_init_abi (info, gdbarch, 0);
749c8b38
RW
38
39 if (tdep->cris_version == 32)
40 /* Threaded debugging is only supported on CRISv32 for now. */
41 set_gdbarch_fetch_tls_load_module_address (gdbarch,
dda83cd7 42 svr4_fetch_objfile_link_map);
749c8b38
RW
43
44 set_solib_svr4_fetch_link_map_offsets (gdbarch,
c0154a4a 45 linux_ilp32_fetch_link_map_offsets);
749c8b38
RW
46
47}
48
6c265988 49void _initialize_cris_linux_tdep ();
749c8b38 50void
6c265988 51_initialize_cris_linux_tdep ()
749c8b38
RW
52{
53 gdbarch_register_osabi (bfd_arch_cris, 0, GDB_OSABI_LINUX,
54 cris_linux_init_abi);
55}