Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-04-15 | Remove libunwind-ptrace dependency.android-m-preview-2android-m-preview-1android-m-previewandroid-lego-6.0.1_r2android-lego-6.0.1_r1android-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r68android-6.0.1_r67android-6.0.1_r66android-6.0.1_r65android-6.0.1_r63android-6.0.1_r62android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r55android-6.0.1_r54android-6.0.1_r53android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r5android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r45android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r4android-6.0.1_r33android-6.0.1_r32android-6.0.1_r31android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r25android-6.0.1_r24android-6.0.1_r22android-6.0.1_r21android-6.0.1_r20android-6.0.1_r18android-6.0.1_r17android-6.0.1_r16android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r41android-6.0.0_r4android-6.0.0_r3android-6.0.0_r26android-6.0.0_r25android-6.0.0_r24android-6.0.0_r23android-6.0.0_r2android-6.0.0_r13android-6.0.0_r12android-6.0.0_r11android-6.0.0_r1master-soongmarshmallow-releasemarshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr1.6-releasemarshmallow-dr1.5-releasemarshmallow-dr1.5-devmarshmallow-dr-releasemarshmallow-dr-lego-releasemarshmallow-dr-dragon-releasemarshmallow-dr-devmarshmallow-devmarshmallow-cts-release | Christopher Ferris | |
Change-Id: I2bc07526df79bcbda57b850d077350859afe92f8 | |||
2015-02-15 | Remove unnecessary manual include path entries. | Elliott Hughes | |
We pick up elfutils and libunwind headers for free by linking the libraries. Change-Id: Icd5006766ac9dc8a208a22f762865ee60f82a455 | |||
2015-02-05 | Use the libcxxabi __cxa_demangle. | Elliott Hughes | |
Bug: 18930951 Change-Id: I5b2cc82f2bc4fcb95de0a0ef7ecf4ab0178d20fb | |||
2014-09-04 | Remove makefile cruft. | Elliott Hughes | |
The files that need _GNU_SOURCE define it themselves, and bionic now correctly takes that to imply the latest _POSIX_C_SOURCE (which this _wasn't_ getting, leading to a missing declaration for open_memstream). Bug: 17361504 Change-Id: Idd1c2abb6818d5216a7cdcdbaa235a113447831f | |||
2014-04-09 | Build ltrace for x86 and x86-64.android-wear-5.1.1_r1android-wear-5.1.0_r1android-wear-5.0.0_r1android-l-preview_r2android-cts-5.1_r9android-cts-5.1_r8android-cts-5.1_r7android-cts-5.1_r6android-cts-5.1_r5android-cts-5.1_r4android-cts-5.1_r3android-cts-5.1_r28android-cts-5.1_r27android-cts-5.1_r26android-cts-5.1_r25android-cts-5.1_r24android-cts-5.1_r23android-cts-5.1_r22android-cts-5.1_r21android-cts-5.1_r20android-cts-5.1_r2android-cts-5.1_r19android-cts-5.1_r18android-cts-5.1_r17android-cts-5.1_r16android-cts-5.1_r15android-cts-5.1_r14android-cts-5.1_r13android-cts-5.1_r10android-cts-5.1_r1android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.1.1_r9android-5.1.1_r8android-5.1.1_r7android-5.1.1_r6android-5.1.1_r5android-5.1.1_r4android-5.1.1_r38android-5.1.1_r37android-5.1.1_r36android-5.1.1_r35android-5.1.1_r34android-5.1.1_r33android-5.1.1_r30android-5.1.1_r3android-5.1.1_r29android-5.1.1_r28android-5.1.1_r26android-5.1.1_r25android-5.1.1_r24android-5.1.1_r23android-5.1.1_r22android-5.1.1_r20android-5.1.1_r2android-5.1.1_r19android-5.1.1_r18android-5.1.1_r17android-5.1.1_r16android-5.1.1_r15android-5.1.1_r14android-5.1.1_r13android-5.1.1_r12android-5.1.1_r10android-5.1.1_r1android-5.1.0_r5android-5.1.0_r4android-5.1.0_r3android-5.1.0_r1android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-wear-releaselollipop-releaselollipop-mr1-wfc-releaselollipop-mr1-releaselollipop-mr1-fi-releaselollipop-mr1-devlollipop-mr1-cts-releaselollipop-devlollipop-cts-releasel-preview | Elliott Hughes | |
(Needs a bionic <sys/user.h> change.) Bug: 13889008 Change-Id: Id2d067af58eae01fb4b9ddaeef749ed79b8a9a37 | |||
2014-04-08 | Merge "Re-add stpcpy call." | Christopher Ferris | |
2014-04-07 | ltrace: Temporarily disable ltrace on x86. | Mohamad Ayyash | |
We need to fix the dependency on user_fpregs_struct. Change-Id: Iaa1212bed9fa018fb3f151a2edc987f92de6e49b | |||
2014-04-07 | ltrace: Build ltrace on arm, arm64 and x86 only. | Mohamad Ayyash | |
Change-Id: Ic9345c28f5b02da43600c6ec2086c8c734f54ebd | |||
2014-04-08 | Merge "ltrace: Fix the mips build." | Mohamad Ayyash | |
2014-04-07 | ltrace: Fix the mips build. | Mohamad Ayyash | |
1) Fix missing error.h in plt.c. 2) Add a TODO to fix missing relplt_count in mips plt.c. 3) Enforce operator precedence between * and != which is apparently incorrect for the mips compiler. Change-Id: I2d5d925566daf81a0380724bc103570c80e381e7 | |||
2014-04-07 | Re-add stpcpy call. | Christopher Ferris | |
Change-Id: I1e80c3ee1693452f8f1669027fcd0a225e986eb2 | |||
2014-04-07 | ltrace: Get it to build on Android (Android.mk and missing functions) | Mohamad Ayyash | |
- Add Android.mk. - Work around missing stpcpy() and rindex(). Change-Id: Iffdd707b22a84b1a1c6a802574ded05b289cee0a | |||
2014-04-04 | Add missing #include stdio.h | dann frazier | |
Include stdio.h in files that use fprintf() Signed-off-by: dann frazier <dannf@debian.org> | |||
2014-04-04 | add missing <stdint.h> include | dann frazier | |
aarch64's fetch.c uses the uintptr_t typedef defined by stdint.h without including it. This doesn't currently cause a build failure because stdint.h is indirectly included via proc.h. Signed-off-by: dann frazier <dannf@debian.org> | |||
2014-03-17 | Add MODULE_LICENSE_GPL and NOTICE files | Conley Owens | |
Change-Id: Idc777be3224fb1533183d645f3974c77fec28c0c | |||
2014-02-28 | Add --config to man, drop -X from options.c | Petr Machata | |
2014-02-13 | Initialize struct process.e_machine and .e_class for secondary threads | Petr Machata | |
2014-02-05 | Add some stuff to libc.so.conf | Petr Machata | |
2014-02-05 | Update NEWS, README | Petr Machata | |
2014-02-05 | Implement aarch64 support | Petr Machata | |
- IFUNC support is not implemented, the rest works well. The only other failure is in wide char functions, and that occurs on x86_64 as well. | |||
2014-02-05 | Set child stack alignment in trace-clone.c | Petr Machata | |
- This is important on aarch64, which requires 16-byte aligned stack pointer. This might be relevant on other arches as well, I suspect we just happened to get the 16-byte boundary in some cases. | |||
2014-02-05 | Force use of SYS_open on aarch64 as well | Petr Machata | |
- That system call is not implemented on aarch64, but we don't care, we are only calling it to see if the parameters get decoded properly. So call using the "syscall" wrapper, and hard-code SYS_open value on aarch64, where glibc doesn't define it. | |||
2014-02-05 | Rewrite system_calls.exp | Petr Machata | |
- Port this to new style test case - Be more clever about what syscalls were invoked from main, as opposed to the multitude of calls that the dynamic linker typically makes - Allow some basic calls to come in XXXat variants (e.g. openat instead of open), such is the case on aarch64. | |||
2014-02-05 | Add some missing system calls to syscalls.conf | Petr Machata | |
2014-02-05 | Improve HFA-related test cases | Petr Machata | |
- Moved a bunch of preexisting HFA tests to a separate test case (and converted them to new style in the process). Added another bunch of HFA tests. | |||
2014-01-14 | Manpage and --help clarifications | Petr Machata | |
2014-01-10 | Don't crash untraced calls via PLT in prelinked PPC64 binaries | Petr Machata | |
In prelinked binaries, ltrace has to unprelinks PLT slots in order to catch calls done through PLT. This makes the calls done through these slots invalid, because the special first PLT slot is not initialized, and dynamic linker SIGSEGVs because of this. Ltrace relies on arranging breakpoints such that the dynamic linker is not actually entered, and moves PC around itself to simulate the effects of a call through PLT. Originally, arch_elf_add_plt_entry was called only for symbols that were actually traced. Later this was changed and it's now called for all PLT entries, and the resulting candidate list is filtered afterwards. This gives backends a chance to rename the symbol, as is useful with IRELATIVE PLT calls, where symbol name may not be available at all. But the PPC backend was never updated to reflect this, and unresolved all symbols for which arch_elf_add_plt_entry was called, thus rendering _all_ PLT slots invalid, even those that weren't later procted by breakpoints. Thus calls done through any untraced slots failed. This patch fixes this problem by deferring the unprelinking of PLT slots into the on_install hook of breakpoints. | |||
2014-01-10 | Add a new per-breakpoint callback on_install | Petr Machata | |
2014-01-10 | Drop unused function enable_all_breakpoints | Petr Machata | |
2014-01-10 | Type umovebytes properly | Petr Machata | |
2014-01-10 | Initialize libsym early in trace.c to help the compiler. | Mark Wielaard | |
GCC 4.4.7 isn't smart enough to realize own_libsym will always be zero when it sees the goto done which might jump over the initialization of libsym. And so will produce a warning like: cc1: warnings being treated as errors trace.c: In function ‘ifunc_ret_hit’: trace.c:1433: error: ‘libsym’ may be used uninitialized in this function | |||
2014-01-10 | Add support for using elfutils as unwinder. | Mark Wielaard | |
This adds support for using elfutils as unwinder with -w. Since elfutils 0.158 elfutils contains a simple unwinder interface that matches nicely on the ltrace backtrace support. The code reuses the libunwind infrastructure already in ltrace where possible (by defining HAVE_UNWINDER which is 1 if either libunwind or elfutils is used). It also reuses the ltrace proc_add_library callback to keep track of the ELF files mapped for the unwinder. The current implementation matches the output as if libunwind was used. But elfutils can also provide some more information since it can lookup the DWARF debuginfo. So if the source info of an address can be found through elfutils the backtrace will also include this as an additional output line per frame. | |||
2014-01-10 | Type proc_each_breakpoint properly | Petr Machata | |
2014-01-10 | Fix a problem in tracing across fork on PPC64 | Petr Machata | |
In order to avoid single-stepping through large portions of the dynamic linker, ltrace remembers at which address the instruction that resolved a PLT slot is. It then puts a breakpoint to this address so that it can fast-forward to that address next time it needs to catch a PLT slot being resolved. When a process is cloned, the pointer to this breakpoint is simply copied over to the new process, instead of being looked up in the new process structures. This patches fixes this. | |||
2014-01-09 | minor fixes in manpages | Juan Cespedes | |
2014-01-07 | Nits | Petr Machata | |
- Fix some coding style issues in output.c - Add a couple items to TODO | |||
2014-01-07 | Fix infinite loop in stack unwind | Luca Clementi | |
This bug was introduced in af452c6 Reported-by: Petr Machata <pmachata@redhat.com> | |||
2014-01-05 | Minor fixes in manpages | Juan Cespedes | |
2014-01-05 | check return value of unw_get_reg and unw_get_proc_name | Luca Clementi | |
Before printng the current procedure name and IP verify their validity | |||
2013-12-30 | Drop debian/ directory | Juan Cespedes | |
Every distribution should create its own specific files | |||
2013-11-27 | Support IRELATIVE relocations on s390 | Petr Machata | |
2013-11-27 | On s390{,x}, r2 is scrambled after syscall entry | Petr Machata | |
This was caught by system_call_params.exp test case: exe->mount("source", "target", "filesystemtype", 0, nil <unfinished ...> mount@SYS("", "target", "filesystemtype", 0, nil) = -2 <... mount resumed> = -1 Note how the first parameter disappears--r2 now holds syscall number (21 in this case), and the original value is stored in orig_gpr2 in save area. | |||
2013-11-26 | On x86{,_64}, PLT entries may not be ordered by their relocation | Petr Machata | |
- In general they are. But IRELATIVE relocations are sorted to come last, and PLT entries are not sorted accordingly. | |||
2013-11-21 | Consider exec and exit events an end of outstanding calls | Petr Machata | |
- This cleans up a lot of stuff. The actual substance is addition of account_current_callstack in handle_event.c (which however uses those cleaned-up interfaces). - trace-exec.exp was extended to check that the exec syscall can be seen in -c output. That's one of the symptoms of what this fixes. - This hides dict_opt_c in summary.c. It also gets rid of the global variable current_time_spent--instead, the information is passed via a function argument in a struct timedelta (so that we never confuse absolute time with relative). callstack_element.time_spent was renamed to .enter_time, as that is what it has always been. | |||
2013-11-14 | Update NEWS | Petr Machata | |
2013-11-13 | Add a test case for wide character functions | Petr Machata | |
2013-11-12 | Update NEWS | Petr Machata | |
2013-11-11 | In read_config_file.c, clone type info when unsharing it | Petr Machata | |
2013-11-11 | Cleanups | Petr Machata | |
2013-11-11 | Add many wide cheracter functions to libc.so.conf | Petr Machata | |