aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/alpha/tm-fbsd.h
blob: 00d3c27dc0b8d616b92a489a9c382923f7965f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* Target-dependent definitions for FreeBSD/Alpha.
   Copyright 2000, 2001 Free Software Foundation, Inc.

   This file is part of GDB.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

#ifndef TM_FBSD_H
#define TM_FBSD_H

#include "alpha/tm-alpha.h"

/* FreeBSD uses the old gcc convention for struct returns.  */

#undef USE_STRUCT_CONVENTION
#define USE_STRUCT_CONVENTION(gcc_p, type) \
  alphafbsd_use_struct_convention (gcc_p, type)

/* FreeBSD doesn't mark the outermost frame.  While some FreeBSD/Alpha
   releases include (a minimal amount of) debugging info in its
   startup code (crt1.o), the safest thing is to consider the user
   code entry point as the outermost frame.  */
#define FRAME_CHAIN_VALID(chain, thisframe) \
  func_frame_chain_valid(chain, thisframe)

/* Number of traps that happen between exec'ing the shell to run an
   inferior, and when we finally get to the inferior code.  The
   default is right for FreeBSD.  */

#undef START_INFERIOR_TRAPS_EXPECTED

#endif /* TM_FBSD_H */