• Home
  • History
  • Annotate
  • only in /system/core/libcorkscrew/
History log of /system/core/libcorkscrew/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5f83cf0bcf96fc58ca7314571ae264353cdee321 22-Aug-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of a6405e9d to jb-mr1-dev

Change-Id: I2c698ec017f29c9ccc89231439cb6c8013914009
db56bb4aebb2aaa63cf33c2f9868a22ea655b38e 22-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "libcorkscrew: avoid future name collisions."
ef1945f8e9fc3b5aab9bf9b0bda83517a906f4fe 15-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 417e3041: am 8124e073: Merge "Fix unused parameter warnings"

* commit '417e3041b8b6ba9582c2e4d2003cfcd77435fc21':
Fix unused parameter warnings
5731de9620a632e1b70e19dd816f9807ba84082e 15-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 83c4398b: am cc12ed32: Merge "[MIPS] debuggerd and libcorkscrew support"

* commit '83c4398b4adb5c2cfaf6487699a8b94901ce0fb1':
[MIPS] debuggerd and libcorkscrew support
8124e0736208c47a74767170d31e3c24e0f47504 15-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Fix unused parameter warnings"
46beebea823878218fc0f14723829d83886af978 26-Jul-2012 Edwin Vane <edwin.vane@intel.com> Fix unused parameter warnings

-Werror is used for this project so these warnings were causing the
clang build to fail.

Change-Id: I18c447ce239645e05f59c3cf0e2b8bb17d9d3030
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Tarea A Siraj <tareq.a.siraj@intel.com>
rch-x86/backtrace-x86.c
rch-x86/ptrace-x86.c
acktrace.c
231e3c83a3a70b11160fb0da108ebf2e0e7470e2 11-Aug-2012 Chris Dearman <chris@mips.com> [MIPS] debuggerd and libcorkscrew support

Change-Id: I5a241dc2e470148be0ad2c138e31f1aba5ab8812
ndroid.mk
rch-mips/backtrace-mips.c
rch-mips/ptrace-mips.c
b4ef91b97513434a13d6d84a810512315ecf4768 10-Jul-2012 David 'Digit' Turner <digit@google.com> libcorkscrew: avoid future name collisions.

This is a forward-compatibility patch used to avoid two problems:

1/ The C library <signal.h> is going to be updated to define 'struct sigcontext'
properly soon. Avoid redefining this structure here when it's not really needed
to prevent a type conflict.

2/ Similarly, proper ucontext_t support is going to be added, prevent conflict by
using a macro renaming trick. Mainly because there is a slight chance that the
C library definition will follow a slightly different layout/naming.

For context, see details at:

http://code.google.com/p/android/issues/detail?id=34784
https://android-review.googlesource.com/#/c/38875/1

Change-Id: Ie94eb5d77297f8e0bafd146b65a648bd8805a551
rch-arm/backtrace-arm.c
rch-x86/backtrace-x86.c
6b659aec2ef83504b836de211f072d79ad2edc3d 23-May-2012 Elliott Hughes <enh@google.com> Fix a leak I caused in the libcorkscrew test program.

Change-Id: Iecbe006721d462694d48f32bca1606443b9c9714
est.c
6b3bab39d128947bf51deefe6a28c247cafd7bae 21-May-2012 Elliott Hughes <enh@google.com> Fix libcorkscrew for x86 targets (bionic) as well as the host (glibc).

Longer term, we might want to offer <ucontext.h> and have that be like glibc's,
but not today. (Note that POSIX says nothing about mcontext_t and glibc,
Mac OS, and the Linux kernel headers are all mutually incompatible.)

Change-Id: Ia074b51f4567cd54e06bbe29721389c8d1278614
rch-x86/backtrace-x86.c
04607b8aa91051bb43cd652dca1cef1579ed5dad 19-May-2012 Elliott Hughes <enh@google.com> Test libcorkscrew's ELF symbol table decoder too.

Change-Id: I3180ffe07b44245c698dd03a789a3b337f32872a
est.c
71363a8075e7916c2166cbdd8a0bf5a180ed4d54 18-May-2012 Elliott Hughes <enh@google.com> Support libcorkscrew on x86 hosts in binaries using glibc.

Change-Id: I1f2b7f21cc7f8227dbe7d294fed88cb691a24d09
ndroid.mk
rch-x86/backtrace-x86.c
acktrace.c
ymbol_table.c
est.c
420a7fa82d0fba6516d76d6024728de010b1cb8d 18-May-2012 Elliott Hughes <enh@google.com> Add missing #includes.

Change-Id: I81405d638f80fc96874ea0b21af3538229aa38a7
ap_info.c
trace.c
19b39f371be5250e7b9e88016be1e5e665367b3f 22-Nov-2011 Jeff Brown <jeffbrown@google.com> Improve backtrace formatting.

Show the symbol offset, when available.

Centralized formatting of native stack traces in libcorkscrew.
It's handy for automated tools if all stacks look the same.
Since we already made them all look them same, we might as well
do the formatting in just one place.

Do not strip the Thumb bit on ARM. This fixes an off-by-one
issue that could happen when resolving a PC that was at the
very beginning of a Thumb function, since the symbol table would
have the Thumb bit set but since we stripped the bit from our
PC, we would be looking for an address one byte before the
one listed in the symbol table. It's also quite useful to see
whether a given function is executing in Thumb mode just by glancing
at the PC.

Change-Id: Icaa29add85ce0bcafe24d5ce2098e138d809e2ab
rch-arm/backtrace-arm.c
acktrace.c
ymbol_table.c
677545639cbc3d3018146534f27c8f5bdcd1bb46 19-Nov-2011 Jeff Brown <jeffbrown@google.com> Minor robustness tweaks.

Use the alternate stack specified by sigaltstack (if there is one).

Use tgkill instead of kill to ensure that we send the signal to
precisely the right thread.

Added timeout logic.

Change-Id: I72922137d1bc0c8becff98244926bde09fe3990e
acktrace.c
1a5a497795d3d9a3d9278ca9c23668ab9dc11587 09-Nov-2011 Jing Yu <jingyu@google.com> Link with libgccdemangle.so for name demangling.

1. X86 target will also have name demangling feature.
2. Remove dependency on libiberty.so, since it will not come
with prebuilt toolchain in gcc-4.6 and after.

Change-Id: Iefbb021c5c3171b9467954eafa54046ad6805753
ndroid.mk
emangle.c
f0c5872637a63e28e3cd314cfc915c07f76df9c6 04-Nov-2011 Jeff Brown <jeffbrown@google.com> Improve stack unwinder robustness.

Keep track of whether memory maps are readable. Use the information
in try_get_word to try to avoid accidentally dereferencing an invalid
pointer within the current process. (Note that I haven't ever
seen that happen during normal unwinding, but it pays to be
a little more careful.)

Refactored try_get_word a little to make it easier to pass it the
needed state for validation checks by way of a little memory_t struct.

Improved how the memory map for the current process is cached. This is
important because we need up to date information about readable maps.
Use a 5 second cache expiration.

Improved the PC -> LR fallback logic in the unwinder so we can
eke out an extra frame sometimes.

Fixed a bug reading ELF program headers. The phnum & phentsize
fields are half-words. We were incorrectly interpreting
phnum as a whole word.

Used android_atomic_* operations carefully in the unwinder
to prevent possible memory races between the dumper and the dumpee.
This was highly unlikely (or even impossible due to the presence
of other barriers along the way) but the code is clearer now about
its invariants.

Fixed a bug in debuggerd where the pid was being passed to have
its stack dump taken instead of the tid, resulting in short
stacks because ptrace couldn't read the data if pid != tid.
Did a full sweep to ensure that we use pid / tid correctly everywhere.

Ported old code from debuggerd to rewind the program counter back
one instruction so that it points to the branch instruction itself
instead of the return address.

Change-Id: Icc4eb08320052975a4ae7f0f5f0ac9308a2d33d7
rch-arm/backtrace-arm.c
rch-arm/ptrace-arm.c
rch-x86/backtrace-x86.c
acktrace-arch.h
acktrace.c
ap_info.c
trace.c
69f4cd7f5add7a7c7f5915e5292aab7eb2a42e9f 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE

Bug: 5449033
Change-Id: Ib453f869977a6e909095a578bbf0420851f887d2
rch-arm/backtrace-arm.c
trace.c
bd57bd00b2172af9f315f2d3d62d68ca369e3666 26-Oct-2011 Jeff Brown <jeffbrown@google.com> A wee little division by 8 makes all the difference.

Change-Id: Idff879a8461e1abc97dfa624c1441c16df1c7a69
rch-arm/backtrace-arm.c
9524e4158fbb988b6a5e4f5be68ee10b7e4dd6d8 24-Oct-2011 Jeff Brown <jeffbrown@google.com> Add support for explicitly dumping native stacks.

This change modifies debuggerd so that it can be used to grab
the native stacks of a process that has hung and not just crashed.
Note that only the root user can do this (for now).

adb shell debuggerd <tid>

Then use logcat to find the tombstone file that was generated
which will have the native stacks of all threads in the
requested process. The specified thread will be shown first
and will also appear in the main log.

Also made some minor tweaks to libcorkscrew so that we
could handle statically compiled executables in the future
if we compiled the library statically.

Improved the "wait_for_user_action" function to support
volume down as an alternative for devices that do not
have home keys.

Removed a mess of gotos.

Change-Id: Ic149653986b0c2f503c7f0e8b7cb1f3be7c84d1e
rch-arm/backtrace-arm.c
10484a068412613aaf3924f63a0b2f61400c7d1e 21-Oct-2011 Jeff Brown <jeffbrown@google.com> Add x86 stack unwinding support to libcorkscrew.

Change-Id: I1d4f4b11b4c8bf517b1dd07afccbedc41a84fd1b
ndroid.mk
rch-x86/backtrace-x86.c
rch-x86/ptrace-x86.c
501edd29b823ce1301d2effdd3a9e4b6e2b20b76 20-Oct-2011 Jeff Brown <jeffbrown@google.com> Add a new library for collecting stack traces.

Supports collecting the stack trace of the current thread,
another thread in the same process, or a thread in a
different process (using ptrace).

Change-Id: Ica2594e4436edde4ceb7bcc3d78e6c31a7902cbf
ndroid.mk
ODULE_LICENSE_APACHE2
OTICE
rch-arm/backtrace-arm.c
rch-arm/ptrace-arm.c
acktrace-arch.h
acktrace-helper.c
acktrace-helper.h
acktrace.c
emangle.c
ap_info.c
trace-arch.h
trace.c
ymbol_table.c