diff options
author | Xin Qi <xqi@codeaurora.org> | 2011-11-27 23:27:29 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2013-10-31 19:37:29 -0600 |
commit | 337a595d746d34ade52e3aba2c739455dfd3cf57 (patch) | |
tree | 9e7c1286bc68b26dd445603118132e359ec28e58 /vm/DalvikCrashDump.h | |
parent | 6e21232cf2bca0e73bd418413564cb140ab9ccbd (diff) | |
download | android_dalvik-337a595d746d34ade52e3aba2c739455dfd3cf57.tar.gz android_dalvik-337a595d746d34ade52e3aba2c739455dfd3cf57.tar.bz2 android_dalvik-337a595d746d34ade52e3aba2c739455dfd3cf57.zip |
dalvik: dalvik device extension pack.
Add support for customer device extension
Change-Id: I0402a630ba212d1c5e81cda110f61210f7b60384
(cherry picked from commit 11499df326462bfe25890a35c6abbf019ff7784e)
(cherry picked from commit e03b8f8da9cf4eef64cedf39ce9ca90d26ce5124)
(cherry picked from commit fb360be406f35b9591f12c61936657f03cc5880f)
Diffstat (limited to 'vm/DalvikCrashDump.h')
-rw-r--r-- | vm/DalvikCrashDump.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/vm/DalvikCrashDump.h b/vm/DalvikCrashDump.h new file mode 100644 index 000000000..633179448 --- /dev/null +++ b/vm/DalvikCrashDump.h @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2012, The Linux Foundation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met, + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of The Linux Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * Hooks for debuggerd to call into libdvm during a crash to dump + * dalvik related information + **/ + +#ifndef DALVIK_CRASH_DUMP_H +#define DALVIK_CRASH_DUMP_H + +#include <corkscrew/ptrace.h> + +#ifdef HAS_LIBDVM +# include <utility.h> +#else +# include <../system/core/debuggerd/utility.h> +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +void dump_dalvik (ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault); + +#ifdef __cplusplus +} +#endif + +#endif |