gnu.gcj.runtime
Class NameFinder
Lookup addresses (represented as longs) to find source & line number info.
The following system property is available (defaults to true):
gnu.gcj.runtime.NameFinder.use_addr2line
gnu.gcj.runtime.NameFinder.remove_unknown
close()
should be called to get rid of all resources.
This class is used from
java.lang.VMThrowable
.
NameFinder() - Create a new NameFinder to lookup names in binaryFile.
|
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
NameFinder
public NameFinder()
Create a new NameFinder to lookup names in binaryFile. Call close to get rid of any
resources created while using the lookup
methods.
close
public void close()
Releases all resources used by this NameFinder.
demangleInterpreterMethod
public static String demangleInterpreterMethod(String m,
String cn)
Returns human readable method name and aguments given a method type
signature as known to the interpreter and a classname.
getLineNum
public int getLineNum()
If lookup() was successful, returns the line number of addr. If the line number could not
be determined, -1 is returned.
getSourceFile
public String getSourceFile()
Returns the source file name if lookup() was successful. If the source file could not be
determined, the binary name will be returned instead.
NameFinder.java -- Translates addresses to StackTraceElements.
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details.