Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c65110e4
Commit
c65110e4
authored
Jan 24, 2007
by
Keith Seitz
Committed by
Keith Seitz
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(getAllClassMethods): Implement. From-SVN: r121142
parent
c3a7e886
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
libjava/ChangeLog
+5
-0
libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
+32
-2
No files found.
libjava/ChangeLog
View file @
c65110e4
2007-01-24 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(getAllClassMethods): Implement.
2007-01-24 Andrew Haley <aph@redhat.com>
2007-01-24 Andrew Haley <aph@redhat.com>
* gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
* gnu/classpath/natVMStackWalker.cc: Call InitClass everywhere.
...
...
libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
View file @
c65110e4
...
@@ -301,9 +301,39 @@ getClassStatus (MAYBE_UNUSED jclass klass)
...
@@ -301,9 +301,39 @@ getClassStatus (MAYBE_UNUSED jclass klass)
JArray
<
gnu
::
classpath
::
jdwp
::
VMMethod
*>
*
JArray
<
gnu
::
classpath
::
jdwp
::
VMMethod
*>
*
gnu
::
classpath
::
jdwp
::
VMVirtualMachine
::
gnu
::
classpath
::
jdwp
::
VMVirtualMachine
::
getAllClassMethods
(
MAYBE_UNUSED
jclass
klass
)
getAllClassMethods
(
jclass
klass
)
{
{
return
NULL
;
jint
count
;
jmethodID
*
methods
;
jvmtiError
err
=
_jdwp_jvmtiEnv
->
GetClassMethods
(
klass
,
&
count
,
&
methods
);
if
(
err
!=
JVMTI_ERROR_NONE
)
{
char
*
error
;
jstring
msg
;
if
(
_jdwp_jvmtiEnv
->
GetErrorName
(
err
,
&
error
)
!=
JVMTI_ERROR_NONE
)
{
msg
=
JvNewStringLatin1
(
error
);
_jdwp_jvmtiEnv
->
Deallocate
((
unsigned
char
*
)
error
);
}
else
msg
=
JvNewStringLatin1
(
"out of memory"
);
using
namespace
gnu
::
classpath
::
jdwp
::
exception
;
throw
new
JdwpInternalErrorException
(
msg
);
}
JArray
<
VMMethod
*>
*
result
=
(
JArray
<
VMMethod
*>
*
)
JvNewObjectArray
(
count
,
&
VMMethod
::
class
$,
NULL
);
VMMethod
**
rmeth
=
elements
(
result
);
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
jlong
id
=
reinterpret_cast
<
jlong
>
(
methods
[
i
]);
rmeth
[
i
]
=
getClassMethod
(
klass
,
id
);
}
_jdwp_jvmtiEnv
->
Deallocate
((
unsigned
char
*
)
methods
);
return
result
;
}
}
gnu
::
classpath
::
jdwp
::
VMMethod
*
gnu
::
classpath
::
jdwp
::
VMMethod
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment