OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [config/] [nm-linux.h] - Blame information for rev 1181

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* Native support for GNU/Linux.
2
 
3
   Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4
 
5
   This file is part of GDB.
6
 
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
9
   the Free Software Foundation; either version 2 of the License, or
10
   (at your option) any later version.
11
 
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program; if not, write to the Free Software
19
   Foundation, Inc., 59 Temple Place - Suite 330,
20
   Boston, MA 02111-1307, USA.  */
21
 
22
/* GNU/Linux is SVR4-ish but its /proc file system isn't.  */
23
#undef USE_PROC_FS
24
 
25
/* Tell GDB that we can attach and detach other processes.  */
26
#define ATTACH_DETACH
27
 
28
/* Since we're building a native debugger, we can include <signal.h>
29
   to find the range of real-time signals.  */
30
 
31
#include <signal.h>
32
 
33
#ifdef __SIGRTMIN
34
#define REALTIME_LO     __SIGRTMIN
35
#define REALTIME_HI     (__SIGRTMAX + 1)
36
#endif
37
 
38
/* We define this if link.h is available, because with ELF we use SVR4
39
   style shared libraries.  */
40
 
41
#ifdef HAVE_LINK_H
42
#define SVR4_SHARED_LIBS
43
#include "solib.h"             /* Support for shared libraries.  */
44
#endif
45
 
46
 
47
/* Override child_wait in `inftarg.c'.  */
48
struct target_waitstatus;
49
extern ptid_t child_wait (ptid_t ptid, struct target_waitstatus *ourstatus);
50
#define CHILD_WAIT
51
 
52
extern int lin_lwp_prepare_to_proceed (void);
53
#define PREPARE_TO_PROCEED(select_it) lin_lwp_prepare_to_proceed ()
54
 
55
extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose);
56
#define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose))
57
 
58
extern void lin_thread_get_thread_signals (sigset_t *mask);
59
#define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask)
60
 
61
/* Defined to make stepping-over-breakpoints be thread-atomic.  */
62
#define USE_THREAD_STEP_NEEDED 1
63
 
64
 
65
/* Use elf_gregset_t and elf_fpregset_t, rather than
66
   gregset_t and fpregset_t.  */
67
 
68
#define GDB_GREGSET_T  elf_gregset_t
69
#define GDB_FPREGSET_T elf_fpregset_t
70
 
71
/* Override child_pid_to_exec_file in 'inftarg.c'.  */
72
#define CHILD_PID_TO_EXEC_FILE
73
 
74
struct mem_attrib;
75
extern int linux_proc_xfer_memory (CORE_ADDR addr, char *myaddr, int len,
76
                                   int write, struct mem_attrib *attrib,
77
                                   struct target_ops *target);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.