java-interp.h (_Jv_Frame::depth): New function.
* include/java-interp.h (_Jv_Frame::depth):
New function.
* jvmti.cc (_Jv_JVMTI_GetFrameCount): Use _Jv_Frame::depth.
From-SVN: r121709
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// java-interp.h - Header file for the bytecode interpreter. -*- c++ -*-
|
||||
|
||||
/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
|
||||
/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
@@ -357,6 +357,16 @@ public:
|
||||
{
|
||||
thread->frame = (gnu::gcj::RawData *) next;
|
||||
}
|
||||
|
||||
int depth ()
|
||||
{
|
||||
int depth = 0;
|
||||
struct _Jv_Frame *f;
|
||||
for (f = this; f != NULL; f = f->next)
|
||||
++depth;
|
||||
|
||||
return depth;
|
||||
}
|
||||
};
|
||||
|
||||
// An interpreted frame in the call stack
|
||||
|
||||
Reference in New Issue
Block a user