Mercurial > hg > truffle
comparison agent/src/os/linux/libproc.h @ 6641:a9fed06c01d2
7154641: Servicability agent should work on platforms other than x86, sparc
Summary: Added capability to load support classes for other cpus
Reviewed-by: coleenp, bobv, sla
Contributed-by: Bill Pittore <bill.pittore@oracle.com>
author | bpittore |
---|---|
date | Thu, 30 Aug 2012 11:20:01 -0400 |
parents | c18cbe5936b8 |
children | 9fae07c31641 |
comparison
equal
deleted
inserted
replaced
6640:e2cc1fe53845 | 6641:a9fed06c01d2 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef _LIBPROC_H_ | 25 #ifndef _LIBPROC_H_ |
26 #define _LIBPROC_H_ | 26 #define _LIBPROC_H_ |
27 | 27 |
28 #include <jni.h> | |
28 #include <unistd.h> | 29 #include <unistd.h> |
29 #include <stdint.h> | 30 #include <stdint.h> |
30 #include "proc_service.h" | 31 #include "proc_service.h" |
32 | |
33 #if defined(arm) || defined(ppc) | |
34 #include "libproc_md.h" | |
35 #endif | |
31 | 36 |
32 #if defined(sparc) || defined(sparcv9) | 37 #if defined(sparc) || defined(sparcv9) |
33 /* | 38 /* |
34 If _LP64 is defined ptrace.h should be taken from /usr/include/asm-sparc64 | 39 If _LP64 is defined ptrace.h should be taken from /usr/include/asm-sparc64 |
35 otherwise it should be from /usr/include/asm-sparc | 40 otherwise it should be from /usr/include/asm-sparc |
137 const char* sym_name); | 142 const char* sym_name); |
138 | 143 |
139 // address->nearest symbol lookup. return NULL for no symbol | 144 // address->nearest symbol lookup. return NULL for no symbol |
140 const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset); | 145 const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset); |
141 | 146 |
147 struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj); | |
148 | |
149 void throw_new_debugger_exception(JNIEnv* env, const char* errMsg); | |
150 | |
142 #endif //__LIBPROC_H_ | 151 #endif //__LIBPROC_H_ |