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

Subversion Repositories or1k

[/] [or1k/] [branches/] [oc/] [gdb-5.0/] [gdb/] [config/] [nm-linux.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* Native support for GNU/Linux, for GDB, the GNU debugger.
2
   Copyright (C) 1999
3
   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
/* Linux is svr4ish but not that much */
23
#undef USE_PROC_FS
24
 
25
/* Tell gdb that we can attach and detach other processes */
26
#define ATTACH_DETACH
27
 
28
/* We define this if link.h is available, because with ELF we use SVR4 style
29
   shared libraries. */
30
 
31
#ifdef HAVE_LINK_H
32
#define SVR4_SHARED_LIBS
33
#include "solib.h"             /* Support for shared libraries. */
34
#endif
35
 
36
/* Support for the glibc linuxthreads package. */
37
 
38
struct objfile;
39
 
40
/* Hook to look at new objfiles (shared libraries) */
41
extern void
42
linuxthreads_new_objfile PARAMS ((struct objfile *objfile));
43
 
44
/* Method to print a human-readable thread description */
45
extern char *
46
linuxthreads_pid_to_str PARAMS ((int pid));
47
 
48
extern int
49
linuxthreads_prepare_to_proceed PARAMS ((int step));
50
#define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1)
51
 
52
/* Defined to make stepping-over-breakpoints be thread-atomic.  */
53
#define USE_THREAD_STEP_NEEDED 1
54
 
55
/* Macros to extract process id and thread id from a composite pid/tid.
56
   Allocate lower 19 bits for process id, next 12 bits for thread id, and
57
   one bit for a flag to indicate a user thread vs. a kernel thread.  */
58
#define PIDGET(PID)           (((PID) & 0xffff))
59
#define TIDGET(PID)           (((PID) & 0x7fffffff) >> 16)
60
#define MERGEPID(PID, TID)    (((PID) & 0xffff) | ((TID) << 16))
61
 

powered by: WebSVN 2.1.0

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