source: trunk/src/gcc/libjava/include/name-finder.h@ 853

Last change on this file since 853 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.0 KB
Line 
1// name-finder.h - Convert addresses to names
2
3/* Copyright (C) 2000, 2002 Free Software Foundation, Inc
4
5 This file is part of libgcj.
6
7This software is copyrighted work licensed under the terms of the
8Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9details. */
10
11/**
12 * @author Andrew Haley <[email protected]>
13 * @date Jan 6 2000
14 */
15
16#include <gcj/cni.h>
17#include <jvm.h>
18
19#include <sys/types.h>
20
21#ifdef HAVE_SYS_WAIT_H
22#include <sys/wait.h>
23#endif
24
25#include <string.h>
26#include <stdio.h>
27
28#ifdef HAVE_UNISTD_H
29#include <unistd.h>
30#endif
31
32/* _Jv_name_finder is a class wrapper around a mechanism that can
33 convert addresses of methods to their names and the names of files
34 in which they appear. */
35
36class _Jv_name_finder
37{
38public:
39 _Jv_name_finder (char *executable);
40 ~_Jv_name_finder ()
41 {
42#if defined (HAVE_PIPE) && defined (HAVE_FORK)
43 myclose (f_pipe[0]);