| 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 |
|
|---|
| 7 | This software is copyrighted work licensed under the terms of the
|
|---|
| 8 | Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|---|
| 9 | details. */
|
|---|
| 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 |
|
|---|
| 36 | class _Jv_name_finder
|
|---|
| 37 | {
|
|---|
| 38 | public:
|
|---|
| 39 | _Jv_name_finder (char *executable);
|
|---|
| 40 | ~_Jv_name_finder ()
|
|---|
| 41 | {
|
|---|
| 42 | #if defined (HAVE_PIPE) && defined (HAVE_FORK)
|
|---|
| 43 | myclose (f_pipe[0]);
|
|---|
|
|---|