OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jvmti/] [natgeterrorname.cc] - Blame information for rev 778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
#include <gcj/cni.h>
2
 
3
#include <jvm.h>
4
#include <jvmti.h>
5
#include <stdio.h>
6
 
7
#include "jvmti-int.h"
8
#include "geterrorname.h"
9
 
10
static void
11
get_error (jvmtiEnv *env, jvmtiError err)
12
{
13
  char *s;
14
  env->GetErrorName (err, &s);
15
  printf ("%s\n", s);
16
  env->Deallocate (reinterpret_cast<unsigned char *> (s));
17
}
18
 
19
void
20
geterrorname::do_errorname_tests ()
21
{
22
  jvmtiEnv *env;
23
  JavaVM *vm = _Jv_GetJavaVM ();
24
  vm->GetEnv (reinterpret_cast<void **> (&env), JVMTI_VERSION_1_0);
25
 
26
  get_error (env, JVMTI_ERROR_NONE);
27
  get_error (env, JVMTI_ERROR_NULL_POINTER);
28
  get_error (env, JVMTI_ERROR_OUT_OF_MEMORY);
29
  get_error (env, JVMTI_ERROR_ACCESS_DENIED);
30
  get_error (env, JVMTI_ERROR_WRONG_PHASE);
31
  get_error (env, JVMTI_ERROR_INTERNAL);
32
  get_error (env, JVMTI_ERROR_UNATTACHED_THREAD);
33
  get_error (env, JVMTI_ERROR_INVALID_ENVIRONMENT);
34
  get_error (env, JVMTI_ERROR_INVALID_PRIORITY);
35
  get_error (env, JVMTI_ERROR_THREAD_NOT_SUSPENDED);
36
  get_error (env, JVMTI_ERROR_THREAD_SUSPENDED);
37
  get_error (env, JVMTI_ERROR_THREAD_NOT_ALIVE);
38
  get_error (env, JVMTI_ERROR_CLASS_NOT_PREPARED);
39
  get_error (env, JVMTI_ERROR_NO_MORE_FRAMES);
40
  get_error (env, JVMTI_ERROR_OPAQUE_FRAME);
41
  get_error (env, JVMTI_ERROR_DUPLICATE);
42
  get_error (env, JVMTI_ERROR_NOT_FOUND);
43
  get_error (env, JVMTI_ERROR_NOT_MONITOR_OWNER);
44
  get_error (env, JVMTI_ERROR_INTERRUPT);
45
  get_error (env, JVMTI_ERROR_UNMODIFIABLE_CLASS);
46
  get_error (env, JVMTI_ERROR_NOT_AVAILABLE);
47
  get_error (env, JVMTI_ERROR_ABSENT_INFORMATION);
48
  get_error (env, JVMTI_ERROR_INVALID_EVENT_TYPE);
49
  get_error (env, JVMTI_ERROR_NATIVE_METHOD);
50
  get_error (env, JVMTI_ERROR_INVALID_THREAD);
51
  get_error (env, JVMTI_ERROR_INVALID_THREAD_GROUP);
52
  get_error (env, JVMTI_ERROR_INVALID_OBJECT);
53
  get_error (env, JVMTI_ERROR_INVALID_CLASS);
54
  get_error (env, JVMTI_ERROR_INVALID_METHODID);
55
  get_error (env, JVMTI_ERROR_INVALID_LOCATION);
56
  get_error (env, JVMTI_ERROR_INVALID_FIELDID);
57
  get_error (env, JVMTI_ERROR_TYPE_MISMATCH);
58
  get_error (env, JVMTI_ERROR_INVALID_SLOT);
59
  get_error (env, JVMTI_ERROR_INVALID_MONITOR);
60
  get_error (env, JVMTI_ERROR_INVALID_CLASS_FORMAT);
61
  get_error (env, JVMTI_ERROR_CIRCULAR_CLASS_DEFINITION);
62
  get_error (env, JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_ADDED);
63
  get_error (env, JVMTI_ERROR_UNSUPPORTED_REDEFINITION_SCHEMA_CHANGED);
64
  get_error (env, JVMTI_ERROR_INVALID_TYPESTATE);
65
  get_error (env, JVMTI_ERROR_FAILS_VERIFICATION);
66
  get_error (env, JVMTI_ERROR_UNSUPPORTED_REDEFINITION_HIERARCHY_CHANGED);
67
  get_error (env, JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_DELETED);
68
  get_error (env, JVMTI_ERROR_UNSUPPORTED_VERSION);
69
  get_error (env, JVMTI_ERROR_NAMES_DONT_MATCH);
70
  get_error (env,
71
             JVMTI_ERROR_UNSUPPORTED_REDEFINITION_CLASS_MODIFIERS_CHANGED);
72
  get_error (env,
73
             JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_MODIFIERS_CHANGED);
74
  get_error (env, JVMTI_ERROR_MUST_POSSESS_CAPABILITY);
75
  get_error (env, JVMTI_ERROR_ILLEGAL_ARGUMENT);
76
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.