agent/src/os/linux/libproc.h

changeset 4028
a9fed06c01d2
parent 1907
c18cbe5936b8
child 4535
9fae07c31641
     1.1 --- a/agent/src/os/linux/libproc.h	Fri Aug 17 16:47:04 2012 -0700
     1.2 +++ b/agent/src/os/linux/libproc.h	Thu Aug 30 11:20:01 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -25,10 +25,15 @@
    1.11  #ifndef _LIBPROC_H_
    1.12  #define _LIBPROC_H_
    1.13  
    1.14 +#include <jni.h>
    1.15  #include <unistd.h>
    1.16  #include <stdint.h>
    1.17  #include "proc_service.h"
    1.18  
    1.19 +#if defined(arm) || defined(ppc)
    1.20 +#include "libproc_md.h"
    1.21 +#endif
    1.22 +
    1.23  #if defined(sparc) || defined(sparcv9)
    1.24  /*
    1.25    If _LP64 is defined ptrace.h should be taken from /usr/include/asm-sparc64
    1.26 @@ -139,4 +144,8 @@
    1.27  // address->nearest symbol lookup. return NULL for no symbol
    1.28  const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset);
    1.29  
    1.30 +struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj);
    1.31 +
    1.32 +void throw_new_debugger_exception(JNIEnv* env, const char* errMsg);
    1.33 +
    1.34  #endif //__LIBPROC_H_

mercurial