History log of /external/ltrace/sysdeps/linux-gnu/trace.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
79e64bcb176442b0eef89764d5ea7f07972dd240 10-Jan-2014 Petr Machata <pmachata@redhat.com> Type umovebytes properly
/external/ltrace/sysdeps/linux-gnu/trace.c
b882ba7bd0840db234eb84c27665da4b3f4b42b8 09-Jan-2014 Mark Wielaard <mjw@redhat.com> Initialize libsym early in trace.c to help the compiler.

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
/external/ltrace/sysdeps/linux-gnu/trace.c
fa844db00b61b9f61c9ae8c6f4165aa5fff3a5d7 05-Nov-2013 Petr Machata <pmachata@redhat.com> Full support of IFUNC tracing on PPC32
/external/ltrace/sysdeps/linux-gnu/trace.c
fec0b3b1b8323220255f9ebdcac7db2b689783ef 04-Nov-2013 Petr Machata <pmachata@redhat.com> Move code for tracing IFUNC symbols

- ... from sysdeps/linux-gnu/hooks.c to sysdeps/linux-gnu/trace.c
where it fits better.
/external/ltrace/sysdeps/linux-gnu/trace.c
54bb64cf2eae7a0daa4d17e980b743b8ae69413b 04-Nov-2013 Petr Machata <pmachata@redhat.com> Partial support of IFUNC tracing on PPC32

- Just like on PPC64, we need to move IRELATIVE relocations from
.rela.dyn to the vector of PLT relocations

- Just like on PPC64, we may need to rename the symbol--except the
symbol to looked is the one with the address of PLT slot address,
not of rela addend.
/external/ltrace/sysdeps/linux-gnu/trace.c
b061bae322edd4894f14ea2aea6baec36d32eda8 25-Oct-2013 Petr Machata <pmachata@redhat.com> Split linux_elf_find_irelative_name out of linux_elf_add_plt_entry_irelative
/external/ltrace/sysdeps/linux-gnu/trace.c
88070a85ddaf5d2f4c6e89b5fbb5db5124049b4b 24-Oct-2013 Petr Machata <pmachata@redhat.com> sysdeps/linux-gnu/trace.c misses #include <stdint.h>
/external/ltrace/sysdeps/linux-gnu/trace.c
b420a226cd2fc5d6028adcaf236c512a1f1fb437 15-Oct-2013 Petr Machata <pmachata@redhat.com> Add support for tracing of IRELATIVE PLT entries

- Because the IRELATIVE entries have no associated symbol name, we
need to allow arch_elf_add_plt_entry to override the name. This is
done by that callback returning PLT_OK and returning the new symbol
via libsym-chain return argument. Filtering is postponed until we
have that symbol, and the filter is applied to the whole returned
chain.

- Add linux_elf_add_plt_entry_irelative to support proper naming of
IRELATIVE PLT entries. This needs to be called from arch backend,
as the numbers of IRELATIVE relocations differ per-architecture.
/external/ltrace/sysdeps/linux-gnu/trace.c
b94407705ecddffd7820ee61bcad3f0d72ee87c1 14-Oct-2013 Petr Machata <pmachata@redhat.com> Split part of delete_breakpoint into delete_breakpoint_at
/external/ltrace/sysdeps/linux-gnu/trace.c
02a796e5e49c147982020c78b0066930e979f3e4 11-Oct-2013 Petr Machata <pmachata@redhat.com> Rename insert_breakpoint to insert_breakpoint_at
/external/ltrace/sysdeps/linux-gnu/trace.c
7fc98ee3538bdcc898b785c26d275b0661bfdc8b 29-Jan-2013 Petr Machata <pmachata@redhat.com> Instead of smuggling the vfork return breakpoint back, ref it once more

- Before we would let the breakpoint be removed and later reinserted it.
But that's unnecessarily cumbersome, and besides breaks on ARM Thumb,
where the reinserted breakpoint would be ARM breakpoint instead of
Thumb. This is easier and fixes that issue.
/external/ltrace/sysdeps/linux-gnu/trace.c
6e5e2de1728215679e83df6943c34573c1384e32 21-Jan-2013 Petr Machata <pmachata@redhat.com> GNU/Linux software singlestepping: store breakpoints, not addresses

The reason being that the actual breakpoint address might be different
from the address requested. One example is Thumb, where Thumb
breakpoints are requested for address+1 (lowest bit set). Whether
this is clean solution is very questionable though.
/external/ltrace/sysdeps/linux-gnu/trace.c
754ce881453ee3b6c6a93bbdaef7c645f43d49f6 08-Jan-2013 Petr Machata <pmachata@redhat.com> GNU/Linux backend: guard writing through task_info pointer against NULL
/external/ltrace/sysdeps/linux-gnu/trace.c
98ff309cdc98857eb30992f108439cb7d7673598 08-Mar-2013 Petr Machata <pmachata@redhat.com> Change DICT_FIND to DICT_FIND_{REF,VAL}

- In many places, DICT_FIND was awkward to use, as it required the use
of pointers even in cases that the dictionary already stored
pointers. For those cases, add DICT_FIND_VAL.

- Rename the original DICT_FIND to DICT_FIND_REF to make the
disctinction clear. That is useful if the dictionary holds actual
structures.
/external/ltrace/sysdeps/linux-gnu/trace.c
d7e4ca82e1cf20bb2605befb1da74dd1688c706e 28-Nov-2012 Petr Machata <pmachata@redhat.com> Rewrite dict module to be more in line with vect

It's now a bit more strongly typed, can grow and shrink on demand, and has
a more complete interface.
It uses open addressing scheme to store hashes.
/external/ltrace/sysdeps/linux-gnu/trace.c
a9d6a6732c5b0b692a40ac073695332078a73738 05-Mar-2013 Petr Machata <pmachata@redhat.com> Remove hacks for SPARC code

Simply continuing on SPARC is probably broken. The breakpoint isn't
disabled at that point, and continuing just hits it again.

That __ia64___ in ifdef is never defined even on an IA64 machine.
It's a typo, note the three underscores.
/external/ltrace/sysdeps/linux-gnu/trace.c
057caa59fc0063bd73568b0ae19bbf668b572737 30-Jan-2013 Petr Machata <pmachata@redhat.com> Introduce continue_after_exec

This needs to be handled differently on non-Linux platforms.
/external/ltrace/sysdeps/linux-gnu/trace.c
643c6460b64e37af58d8259d86689d414c6b4052 15-Jan-2013 Petr Machata <pmachata@redhat.com> Update call to arch_sw_singlestep

- After the refactoring, the prototype changed and it doesn't
return int anymore. Of course C happily implicitly converts
this. Ho hum.
/external/ltrace/sysdeps/linux-gnu/trace.c
693dfad9c1b121cf079a3082866daa2225df1797 14-Jan-2013 Petr Machata <pmachata@redhat.com> Rename atomic singlestep to software singlestep

- The old name came from PPC implementation, where the feature was used for
skipping atomic instructions. But this is more useful, was reused for
fully software singlestepping on MIPS, and will be similarly used for ARM.
So rename the interface, and make the prototype more explicit.
- Also document the method in backend.h.
- And convert several void*'s to arch_addr_t's while there.
/external/ltrace/sysdeps/linux-gnu/trace.c
71f25e25a4081b726e75026727483b6959dd8661 17-Dec-2012 Petr Machata <pmachata@redhat.com> Make enum ecb_status enumerators uppercase
/external/ltrace/sysdeps/linux-gnu/trace.c
96cb8e3111924780ed1d757e865a83f26421e616 17-Dec-2012 Petr Machata <pmachata@redhat.com> Make enumerators of process stopping status uppercase
/external/ltrace/sysdeps/linux-gnu/trace.c
6dfc544b6aa6703d2292be34470aebf874d78452 17-Dec-2012 Petr Machata <pmachata@redhat.com> Make enum process_status enumerators uppercase

Rationale: coding style consistency.
/external/ltrace/sysdeps/linux-gnu/trace.c
929bd57ca202fd2f2e8485ebf65d683e664f67b5 17-Dec-2012 Petr Machata <pmachata@redhat.com> struct Process becomes struct process

This is for consistency with other structures, and ultimately with
Linux coding style. The typedef ("Process") was dropped as well for
this reason.

This opportunity was used to fix coding style around the impacted
lines.
/external/ltrace/sysdeps/linux-gnu/trace.c
af766ab1e37231fe1d7dc5e4b598b9c92f78ecd4 07-Nov-2012 Petr Machata <pmachata@redhat.com> Move default PTRACE_ constants into new file trace-defs.h

Include it also in events.c, where we use them as well.
/external/ltrace/sysdeps/linux-gnu/trace.c
6c2e57ab25263946a09f42aa84f82678bdbfdc4e 27-Oct-2012 Petr Machata <pmachata@redhat.com> Coding style in sysdeps/linux-gnu/trace.c

This is all now code coming from the threads branch. Hopefully no patches
against this are in the wild.
/external/ltrace/sysdeps/linux-gnu/trace.c
addae05da54ac16c55133e1c384d74e03346f634 27-Sep-2012 Edgar E. Iglesias <edgar@axis.com> mipsel: Singlestep over breakpoints

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
/external/ltrace/sysdeps/linux-gnu/trace.c
bac2da505ee174b7fb984b975c5938f88f0dbab2 29-May-2012 Petr Machata <pmachata@redhat.com> Move target_address_t to arch.h, rename to arch_addr_t

Note that the placement under arch.h is currently conceptual only. Since
no backend defines ARCH_HAVE_ADDRESS_TYPES, it's actually in sysdep.h in
all cases.
/external/ltrace/sysdeps/linux-gnu/trace.c
8ae3673880056b5da0bf9a5fbf9b37276adae56e 30-Apr-2012 Petr Machata <pmachata@redhat.com> Fix memory errors
/external/ltrace/sysdeps/linux-gnu/trace.c
ba1664b062414481d0f37d06bb01a19874c8d481 28-Apr-2012 Petr Machata <pmachata@redhat.com> Fix compilation
/external/ltrace/sysdeps/linux-gnu/trace.c
642626096a694c6af279d25d2b1b2fba5b10ddfb 07-Jan-2012 Petr Machata <pmachata@redhat.com> Add backend.h for backend interfaces
/external/ltrace/sysdeps/linux-gnu/trace.c
cd972587a4c0d14d764b3d0a43d75f5941db14cc 07-Jan-2012 Petr Machata <pmachata@redhat.com> Move event-que declarations to sysdeps, new backend interface process_removed

- the reason being that the que-handling was declared on global level, but
was only implemented in one back end. If this is deemed generally useful,
it should all be moved to front end, but as things are it's all the same,
so I'm preferring the less invasive change
/external/ltrace/sysdeps/linux-gnu/trace.c
46a41f7c72828f2f43a640e0ce1fbb41d7a196e9 06-Jan-2012 Petr Machata <pmachata@redhat.com> Drop umovestr, umovelong that are not used anymore
/external/ltrace/sysdeps/linux-gnu/trace.c
000e31195ad4ad30a0c80c93ab57a424e7d8d918 03-Jan-2012 Petr Machata <pmachata@redhat.com> Add type.c/.h, value.c/.h, value_dict.c/.h

- none of this is plugged in yet
- expr.c/.h is not in yet, so we still express array length with len_spec
integer. Some function are mocked out so the thing compiles
/external/ltrace/sysdeps/linux-gnu/trace.c
c897cb796dc4a7d256cbfbf0137ef7cdff9e8ece 05-May-2012 Petr Machata <pmachata@redhat.com> Fix build on android, which requires that ptrace data and addr are void *

Also, for several requests that ignore addr, we pass 1.
Change these back to 0.
This patch is largely based on work by Florian Echtler <floe@butterbrot.org>.
/external/ltrace/sysdeps/linux-gnu/trace.c
cc0e1e4b83d69441cc5f61ea87eda5458ee9fae3 25-Apr-2012 Petr Machata <pmachata@redhat.com> Replace some uses of error with fprintf

error is not standard so it has no business being used in generic code.
The linux-gnu back end is useful for android, and that doesn't have that
interface either.
/external/ltrace/sysdeps/linux-gnu/trace.c
86d3828129e70222abdb77bdda6f31a7f1eafd5a 24-Apr-2012 Petr Machata <pmachata@redhat.com> Add on_retract breakpoint callback
/external/ltrace/sysdeps/linux-gnu/trace.c
622581f4db4ae4ef8932984a4d1c4935ca7f61ef 23-Apr-2012 Petr Machata <pmachata@redhat.com> Use the right process to insert breakpoints for stepping over atomic block
/external/ltrace/sysdeps/linux-gnu/trace.c
77e8fa8d24af41ec57635d3e73726d3930d95830 19-Apr-2012 Petr Machata <pmachata@redhat.com> Reinsert vfork return breakpoint in handler

Previously we assumed that that breakpoint would still be around in the
breakpoint table, but now that they are actually erased on removal, it
doesn't hold anymore. If it should hold (which might happen), then
insert_breakpoint knows to just piggy-back on an existing breakpoint.
/external/ltrace/sysdeps/linux-gnu/trace.c
24a47043b182f7fec6670d5a4d0e485e94a53ac1 19-Apr-2012 Petr Machata <pmachata@redhat.com> When removing atomic breakpoints, fetch data from leader, not current proc
/external/ltrace/sysdeps/linux-gnu/trace.c
42748aca73359c83881556c8b28f6cda4f1c143b 19-Apr-2012 Petr Machata <pmachata@redhat.com> Fixes for atomic block support

- Support branches in atomic blocks
- Fix interaction between atomic skip and single stepping
/external/ltrace/sysdeps/linux-gnu/trace.c
f1fd7cd52e3829f0073c2d740b3d1998dcfd4923 19-Apr-2012 Petr Machata <pmachata@redhat.com> Fix post_singlestep for cases where event was already sunk
/external/ltrace/sysdeps/linux-gnu/trace.c
9e1e969838d9cc520abb96038aa98520c08c80b9 19-Apr-2012 Petr Machata <pmachata@redhat.com> Fix rebase fallout
/external/ltrace/sysdeps/linux-gnu/trace.c
5d1c5fc1474aed4a02103bb34b7532b9d26c6f3d 15-Apr-2012 Petr Machata <pmachata@redhat.com> Call breakpoint handler if that's what we hit during stopping on linux
/external/ltrace/sysdeps/linux-gnu/trace.c
1e2a4dd274ebb612e0cfa5c83ef081e5846aa949 15-Apr-2012 Petr Machata <pmachata@redhat.com> Expose on_all_stopped hooks for linux stopping handler
/external/ltrace/sysdeps/linux-gnu/trace.c
9ace5742e1d61c88db8adefdeb9e49d4c3a9ff5d 14-Apr-2012 Petr Machata <pmachata@redhat.com> Updates to debugging messages
/external/ltrace/sysdeps/linux-gnu/trace.c
3ed2a4227d5f2a8d44f3c6ffd704a9d2e867c591 06-Apr-2012 Petr Machata <pmachata@redhat.com> Drop PID parameter from trace_set_options
/external/ltrace/sysdeps/linux-gnu/trace.c
949a56a0e1d4a13dc437621a991e993d6623aef5 03-Apr-2012 Petr Machata <pmachata@redhat.com> Fix PLT calls on PPC64 unprelinked stripped
/external/ltrace/sysdeps/linux-gnu/trace.c
cb9a28da448439eab4bf554810fd1004fbc00885 28-Mar-2012 Petr Machata <pmachata@redhat.com> Configurable ugly workaround invocation

- doesn't help to fix the weird singlestepping problem on ppc64 though
/external/ltrace/sysdeps/linux-gnu/trace.c
9df15016447915a61526af8cb81c588913bcf44c 20-Feb-2012 Petr Machata <pmachata@redhat.com> Remove "enable" flag from insert_breakpoint
/external/ltrace/sysdeps/linux-gnu/trace.c
36f40e7d46838ec41ea03a2b9b748536d8fd57e2 28-Mar-2012 Petr Machata <pmachata@redhat.com> Further generalize the process stopping handler
/external/ltrace/sysdeps/linux-gnu/trace.c
9282254e29896366ea354b930b06f9defebbd041 28-Mar-2012 Petr Machata <pmachata@redhat.com> Move declarations related to process stopping handler to a new file trace.h
/external/ltrace/sysdeps/linux-gnu/trace.c
c1aa9588f3347c285038c2e45c01bbd2e7086a9f 27-Mar-2012 Petr Machata <pmachata@redhat.com> Generalize the stopping handler so that it can be reused

- though more generalizing may be needed
/external/ltrace/sysdeps/linux-gnu/trace.c
d3dc17b5e87068819a780af434afaf69e63d2b50 21-Mar-2012 Petr Machata <pmachata@redhat.com> Fixes in includes
/external/ltrace/sysdeps/linux-gnu/trace.c
74132a447b18c588c698ecfb8cf4ad4b16360f2f 16-Mar-2012 Petr Machata <pmachata@redhat.com> Change iterators each_task, each_process, library_each_symbol

... now the restarts are supported by start_after instead of start.
Otherwise the restart scenario was something like:
for (it *sym = NULL; (sym = next(sym)) != NULL; )
if ((sym = sym->next) == NULL)
break;
which just seems too convoluted.
/external/ltrace/sysdeps/linux-gnu/trace.c
c805c624d4cd23674bbc18f9d0f97c5d8dcdff7c 02-Mar-2012 Petr Machata <pmachata@redhat.com> wait_for_proc may fail, and should simply waitpid instead of ptracing

- which means that we need to continue the process after starting it,
the same as we do when attaching
/external/ltrace/sysdeps/linux-gnu/trace.c
2b46cfc1127d390eddd9593fe5ce5399c1f68130 18-Feb-2012 Petr Machata <pmachata@redhat.com> The first crude version of tracing across libraries

- the patch will be sliced later
/external/ltrace/sysdeps/linux-gnu/trace.c
366c2f46d844f040458df9b7e35fc3b8527ed2d3 09-Feb-2012 Petr Machata <pmachata@redhat.com> Move process-related functions and structures to proc.h
/external/ltrace/sysdeps/linux-gnu/trace.c
bc37326ace5c70e57928c000162cffbcca9afb77 07-Feb-2012 Petr Machata <pmachata@redhat.com> Remove Breakpoint typedef
/external/ltrace/sysdeps/linux-gnu/trace.c
9294d82f67e20f5f2b61f317ad04f5cb717c7d27 07-Feb-2012 Petr Machata <pmachata@redhat.com> Create breakpoint.h with decls related to breakpoints
/external/ltrace/sysdeps/linux-gnu/trace.c
a266acb9c3bbde884a32268f164de62d03aa04d0 12-Apr-2012 Petr Machata <pmachata@redhat.com> Add code for stepping over atomic instruction sequence on PPC
/external/ltrace/sysdeps/linux-gnu/trace.c
ffe4cd25089680daf1bd1ec0114d177ec3e0cf95 11-Apr-2012 Petr Machata <pmachata@redhat.com> Handle detach from sleeping or unresponsive processes
/external/ltrace/sysdeps/linux-gnu/trace.c
cec06ec8282c538a40bde968ae36fe8356daffaa 10-Apr-2012 Petr Machata <pmachata@redhat.com> Warn when we fail to trace and SELinux boolean deny_ptrace is in effect
/external/ltrace/sysdeps/linux-gnu/trace.c
b4f9e0c0413c03ad897d7aad320a4a1cd49c467a 07-Feb-2012 Petr Machata <pmachata@redhat.com> Fix a race between fork/trace_me and first ptrace request

- That first ptrace may fail if ltrace is too quick
/external/ltrace/sysdeps/linux-gnu/trace.c
9d29b3e7d2d7f7ccb1891dc56b03e91a0319cf42 09-Nov-2011 Petr Machata <pmachata@redhat.com> Only delay continuing the process if we are actually mid-_stopping_

- The check fired also on vfork handling, and this hung the process
- Add a test case exercising this code, courtesy of Michal Nowak and
Denys Vlasenko
/external/ltrace/sysdeps/linux-gnu/trace.c
43d2fe5436d39da0b1ff6648fc0dfd766d28243e 02-Nov-2011 Petr Machata <pmachata@redhat.com> Don't queue sysret events

- That's because on s390x, we use process call stack to actually figure out
whether it's a syscall/sysret event, and if it's sysret, then what syscall
it returns from. So we need to keep the stack in sync with reality.
/external/ltrace/sysdeps/linux-gnu/trace.c
06986d5432c92337dc2fc0bd81fa43640b48d1e2 02-Nov-2011 Petr Machata <pmachata@redhat.com> More robust fix of signal-before-singlestep problem

- On s390x, when we PTRACE_CONT the process, it will actually continue,
even though we ordered PTRACE_SINGLESTEP before. So always issue
PTRACE_SINGLESTEP when we get signal before singlestep.

- Also, simply queue the signal as usual.
/external/ltrace/sysdeps/linux-gnu/trace.c
d5d93c492fd7cec016f09883f1e9c09cf97c6fb5 21-Oct-2011 Petr Machata <pmachata@redhat.com> Signal event may arrive before we finish singlestepping
/external/ltrace/sysdeps/linux-gnu/trace.c
36d1982d45d54e455413a5c0959f87b1857940d6 21-Oct-2011 Petr Machata <pmachata@redhat.com> Remove "default" branch in the switch in task_stopped

- and a couple commentary changes
/external/ltrace/sysdeps/linux-gnu/trace.c
3797cd6f378d647583f15e2134cbcf9143f57f9c 03-Oct-2011 Petr Machata <pmachata@redhat.com> We have to insert breakpoint into parent, not into leader

- leader might be dead by the point this gets executed
/external/ltrace/sysdeps/linux-gnu/trace.c
ba9911f3603473791163bf11dd1c59503faa4ff1 27-Sep-2011 Petr Machata <pmachata@redhat.com> Fix interplay between vfork and threads
/external/ltrace/sysdeps/linux-gnu/trace.c
134a108693f8155d2167675ad8127ff6def1425e 27-Sep-2011 Petr Machata <pmachata@redhat.com> Trace vfork return in parent as well as in child
/external/ltrace/sysdeps/linux-gnu/trace.c
cbe29c6c0ad01839a81272c4715ea73d17e89611 27-Sep-2011 Petr Machata <pmachata@redhat.com> Basic support for tracing vfork

- allow even individual tasks to have their event handlers. These are
called in precedence to the thread group event handlers.
- distinguish CLONE and VFORK events
- add methods for dynamic changes of leader
- add new process status ps_sleeping
/external/ltrace/sysdeps/linux-gnu/trace.c
f296e0141c062cc0fd8e3301460ba62c49829973 03-Sep-2011 Petr Machata <pmachata@redhat.com> Drop unused variable
/external/ltrace/sysdeps/linux-gnu/trace.c
73894bdb7ef4ea81a44a7b8b3ab896f6b3cab344 20-Aug-2011 Petr Machata <pmachata@redhat.com> Add explanatory comment to the ugly workaround
/external/ltrace/sysdeps/linux-gnu/trace.c
590c80862c009608fd70e976a282473234d92265 20-Aug-2011 Petr Machata <pmachata@redhat.com> Rewrite the whole detach logic to use stopping handler
/external/ltrace/sysdeps/linux-gnu/trace.c
ec85e84d2d3dc441dc2f1a6b403ed495cefd2c5b 20-Aug-2011 Petr Machata <pmachata@redhat.com> Don't get stuck on detach waiting for SIGSTOP to arrive to stopped process
/external/ltrace/sysdeps/linux-gnu/trace.c
3c9b6295c4d4f7424e84c2fbef2fc98bda5e672c 20-Aug-2011 Petr Machata <pmachata@redhat.com> More detach bugfixes
/external/ltrace/sysdeps/linux-gnu/trace.c
46d66ab6d7ef5d12e4d3dd3671450f77a776ea1b 20-Aug-2011 Petr Machata <pmachata@redhat.com> Work around some odd behavior of PTRACE_DETACH after PTRACE_SINGLESTEP

- this might turn out to be a bug in the kernel that I'm using right now.
The thing that when task is detached right after it was singlestepped
(and the singlestep is caught by waitpid), it's immediately killed by
the SIGTRAP signal. This goes away if we insert breakpoint right under
the IP, CONT the process, catch the breakpoint event, retract the
breakpoint, and detach _then_.
/external/ltrace/sysdeps/linux-gnu/trace.c
4b9f4d956e125360d4860d6a8d7574a271c799a0 20-Aug-2011 Petr Machata <pmachata@redhat.com> Refine the logic for detach after singlestep
/external/ltrace/sysdeps/linux-gnu/trace.c
13d5df7743a79c8bceeb9be50d57f9b0f76fc4e8 19-Aug-2011 Petr Machata <pmachata@redhat.com> Undo breakpoints also for unqueued events
/external/ltrace/sysdeps/linux-gnu/trace.c
68abfea2bb3c5e57214929f773755dfcef63fe90 19-Aug-2011 Petr Machata <pmachata@redhat.com> Fix one source of SEGVs/TRAPs on detach

- we can't cont the process if the IP is mid-instruction due to the process
having hit a breakpoint recently
/external/ltrace/sysdeps/linux-gnu/trace.c
1974dbccbf10a2dd8e06724d2fb4eb61fd91076a 19-Aug-2011 Petr Machata <pmachata@redhat.com> Fix serious race in attach to many-threaded process

- the gist is that tasks continue running while we attach, so more tasks
come into existence, or the ones that we didn't attach to yet disappear,
etc.
- besides, we really can't enable breakpoints before we are done attaching,
otherwise the still-running tasks risk running into them and dying of
SIGTRAP.
/external/ltrace/sysdeps/linux-gnu/trace.c
e21264ed3759f02fa4577bf9ac319d8dc36e248a 06-Oct-2011 Petr Machata <pmachata@redhat.com> Fix a race between disabling breakpoint and stopping all threads
/external/ltrace/sysdeps/linux-gnu/trace.c
18c970711cd2597d52c2f146d97350d62980ec2c 06-Oct-2011 Petr Machata <pmachata@redhat.com> We need to check for exit earlier
/external/ltrace/sysdeps/linux-gnu/trace.c
750ca8c13f402a40b01802dcb5c88e092ff68125 06-Oct-2011 Petr Machata <pmachata@redhat.com> Fix a race between waiting for SIGSTOP delivery and task exit
/external/ltrace/sysdeps/linux-gnu/trace.c
617ff0bb228c64df4bb6682321338aecfec2d170 06-Oct-2011 Petr Machata <pmachata@redhat.com> Type the "process_status" interface properly

- and in implementation for linux-gnu, reflect that some kernels don't
distinguish job-control stop and tracing stop by different letter.
/external/ltrace/sysdeps/linux-gnu/trace.c
602330f458e8049ec07685c4e02f0368821a2d2c 09-Jul-2011 Petr Machata <pmachata@redhat.com> Handle multi-threaded attach/detach gracefully
/external/ltrace/sysdeps/linux-gnu/trace.c
98f0992f9c3fd5da41a4928407251d9f5a837702 09-Jul-2011 Petr Machata <pmachata@redhat.com> Use custom event handler for implementation of stop-the-world

- ... which itself is necessary for breakpoint re-enablement without races
/external/ltrace/sysdeps/linux-gnu/trace.c
9a5420c82a2fd81681572a2e3859ea1671c3bded 09-Jul-2011 Petr Machata <pmachata@redhat.com> Add a concept of tasks and leader thread
/external/ltrace/sysdeps/linux-gnu/trace.c
f789c9c0d1f3301afad66e5f0520b9093665f242 09-Jul-2011 Petr Machata <pmachata@redhat.com> Pass Process * instead of pid to a couple functions
/external/ltrace/sysdeps/linux-gnu/trace.c
2662768efe599f6bb43c4310177e30f56b601bb7 08-Jul-2011 Petr Machata <pmachata@redhat.com> Coding style nits
/external/ltrace/sysdeps/linux-gnu/trace.c
ba6aca21bd9e0e66dac17b1828cf6b6e7377b983 09-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Fix building with --enable-debug

Numerous warnings had snuck into the build, preventing ltrace from
building with --enable-debug (which uses -Wall, -Werror, and more).
This patch fixes the problems, mostly caused by -Wsign-compare.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
/external/ltrace/sysdeps/linux-gnu/trace.c
a2ad619c24b3e9cf3edd8f3181a97022f0799fab 07-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Remove unused variable

Eliminate an unused variable to quench the compiler's warning.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
/external/ltrace/sysdeps/linux-gnu/trace.c
dfa3fa3879b12ca7307b42a3feb79f42e60a90b0 09-Nov-2010 Joe Damato <ice799@gmail.com> Add umovebytes to move a range of bytes from the traced process to ltrace
/external/ltrace/sysdeps/linux-gnu/trace.c
f3d1c535dd4d20d2fb7589ec019c4d3af24bb52a 08-Jan-2010 Arnaud Patard <apatard@mandriva.com> Don't use PTRACE_SINGLESTEP on mips

PTRACE_SINGLESTEP is not supported on mips

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
/external/ltrace/sysdeps/linux-gnu/trace.c
f16fcff75f62d44a49ad9c020622956bd2b8df45 08-Jan-2010 Arnaud Patard <apatard@mandriva.com> trace.c: fix (partially) umovelong

umovelong was always returning the full value read in ptrace'd process
memory (eg long) even if the type was not a long (eg int).
This patch add handling for at least int case.

[ found out with parameters test case on x86_64 as int is 32bit and long
64bit ]

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
/external/ltrace/sysdeps/linux-gnu/trace.c
8d1b92ba755f6d6229f5e230fc43d958b13836f8 03-Jul-2009 Juan Cespedes <cespedes@coco.thehackers.org> Some minor fixes
/external/ltrace/sysdeps/linux-gnu/trace.c
f728123bd75a65a6a1536e198c3c30719e494e71 25-Jun-2009 Juan Cespedes <cespedes@debian.org> Re-organize file names
/external/ltrace/sysdeps/linux-gnu/trace.c
3df476b28e4a9cdb43cf29fff8e89481310eb30d 28-May-2009 Juan Cespedes <cespedes@debian.org> Created library "libltrace.a" and a simple program that calls it
/external/ltrace/sysdeps/linux-gnu/trace.c
fea4a1285dc7bea02b0203845ad43117f091fc3e 28-May-2009 Juan Cespedes <cespedes@debian.org> misc typos
/external/ltrace/sysdeps/linux-gnu/trace.c
e0660df7f943cc832694db3b8b6778c0ff65860d 21-May-2009 Juan Cespedes <cespedes@debian.org> Make exec() work again using PTRACE_O_TRACEEXEC
/external/ltrace/sysdeps/linux-gnu/trace.c
2721e6adbc7399e1b621b896b4f5b864082fbf03 21-May-2009 Juan Cespedes <cespedes@debian.org> new fork() and clone() approach

used PTRACE_O_TRACE{FORK,VFORK,CLONE} to trace newly created
processes instead of figuring it out whether a given syscall
would create another process or not
/external/ltrace/sysdeps/linux-gnu/trace.c
85f7d7616f2736de79f6b7f77bceedbc97c83406 14-May-2009 Juan Cespedes <cespedes@debian.org> updated man page
/external/ltrace/sysdeps/linux-gnu/trace.c
cd8976dbee947f152c3a322503a1063c6359da76 14-May-2009 Juan Cespedes <cespedes@debian.org> better debugging support (-d option)
/external/ltrace/sysdeps/linux-gnu/trace.c
1dec217e47f998c03c642561d98753c32683985c 07-May-2009 Juan Cespedes <cespedes@debian.org> struct breakpoint -> Breakpoint
/external/ltrace/sysdeps/linux-gnu/trace.c
a8909f71e1421949c960f287217be6c42c286c0f 28-Apr-2009 Juan Cespedes <cespedes@coco.thehackers.org> struct process -> Process
/external/ltrace/sysdeps/linux-gnu/trace.c
1e583132c95aa211fab9e0e0869b237adfa78304 07-Apr-2009 Juan Cespedes <cespedes@debian.org> Beginning support of PTRACE_O_TRACE* (doesn't work yet)
/external/ltrace/sysdeps/linux-gnu/trace.c
714ee9df1696e696d5bd2e9d95c13e9f5051eb73 07-Apr-2009 Juan Cespedes <cespedes@debian.org> wait for new children to stop before assuming they have stopped
/external/ltrace/sysdeps/linux-gnu/trace.c
e74c80de19a628cab68f10a1e7c92bef2988aafb 11-Feb-2009 Juan Cespedes <cespedes@coco.thehackers.org> Fixed segfault in traced process when receiving a signal

Specifically, when a signal was received while enabling a breakpoint
/external/ltrace/sysdeps/linux-gnu/trace.c
f13505251e6402460f6cc7ec84e0d8ca91607b4f 16-Dec-2008 Juan Cespedes <cespedes@debian.org> Re-indent entry points to functions
/external/ltrace/sysdeps/linux-gnu/trace.c
55c5feba87bbb8d9190a71ec5ddc38380a384bf7 12-Mar-2008 Luis Machado <luisgpm@br.ibm.com> PPC argument handling improvements

* sysdeps/linux-gnu/ppc/trace.c (arch_umovelong): New function.
* sysdeps/linux-gnu/ppc/regs.c (get_instruction): New function.
(get_count_register): New function.
* sysdeps/linux-gnu/ppc/arch.h (ARCH_HAVE_UMOVELONG): New define.
* sysdeps/linux-gnu/trace.c (umovelong): Create arch-specific
variant.
* ltrace.h (umovelong): Change prototype.
* process_event.c (process_breakpoint): Handle specifics of ppc3
* display_args.c: Call umovelong with info parameter.
/external/ltrace/sysdeps/linux-gnu/trace.c
aee093126654f722523b47848a0c5449e39cf4bb 31-Aug-2007 Juan Cespedes <cespedes@debian.org> Some random fixes

* General: Small fixes (indentation, typos, clean-up of code)
* ltrace.c: Close output file on exit
* ltrace.c: use getenf("HOME") instead of getpwuid(geteuid())->pw_dir
* read_config_file.c, display_args.c: remove "ignore" argtype;
that's what "void" is for
* packaging/debian/: misc fixes, sync with version 0.5-1
* etc/ltrace.conf: added more system calls
* testsuite/ltrace.minor/trace-clone.c: sleep(1) to avoid earlier
termination of process
* sysdeps/linux-gnu/trace.c: trace_pid(): reverted Petr's patch
to wait for child to stop, as it stopped following clone()
* process_event.c: Disable breakpoints before doing fork() (again!),
to make children work as expected
/external/ltrace/sysdeps/linux-gnu/trace.c
55ed83b24df9c6d671091a8c75caab33ffecd40e 17-May-2007 Petr Machata <pmachata@redhat.com> Fixes from Supriya Kannery <supriyak@in.ibm.com>

* wait_for_something.c, process_event.c: Tracing across exec.
* sysdeps/linux-gnu/trace.c, ltrace.h: New interface was_exec.
* testsuite/ltrace.minor/trace-exec.c,
testsuite/ltrace.minor/trace-exec.exp,
testsuite/ltrace.minor/trace-exec1.c: Testcase for same.
/external/ltrace/sysdeps/linux-gnu/trace.c
89a536028ab3b699b7f953b6b0fd7607917fc303 25-Jan-2007 Petr Machata <pmachata@redhat.com> Fix -p and -L behavior

* wait for process to stop after PTRACE_ATTACH
* always initialize the breakpoint dictionary,
and thus avoid NULL dereference.
/external/ltrace/sysdeps/linux-gnu/trace.c
7bafff09cc66e23519512a54e2d1ebd3664a1a70 07-Aug-2006 Steve Fink <sphink@gmail.com> pass values instead of argument numbers to fetch
/external/ltrace/sysdeps/linux-gnu/trace.c
3f1219f7803599df8556e7fc096a6a239f9a04fd 24-Apr-2006 Paul Gilliam <pgilliam@us.ibm.com> Adds some casts that keeps a more picky version of GCC happy.
/external/ltrace/sysdeps/linux-gnu/trace.c
2d45b1a8e26a36a9f85dc49e721c4390ca93dc40 20-Feb-2006 Ian Wienand <ianw@ieee.org> run Lindent over source to get everything looking about the same
/external/ltrace/sysdeps/linux-gnu/trace.c
9a2ad351a1c3215dc596ff3e2e3fd4bc24445a6b 20-Feb-2006 Ian Wienand <ianw@ieee.org> Switched to SVN (initial import)
/external/ltrace/sysdeps/linux-gnu/trace.c
5570a7769869a4df25ef85f302f74a7feb6c0cd3 17-Feb-2006 Ian Wienand <ianw@ieee.org> Version 0.3.38-1

* Added ia64 port
* elf.h: add extra field for PLT size
* elf.c: put in PLT size
* sysdeps/linux-gnu/breakpoint.c: add arch breakpoint override
* sysdeps/linux-gnu/trace.c: don't single step after breakpoin for ia64
* configure.ac: add version to AC_INIT, bump version to 0.3.38
* options.c: use PACKAGE_VERSION
/external/ltrace/sysdeps/linux-gnu/trace.c
3219f320604810532a4938dda8f9dfadb0e840f3 16-Feb-2006 Ian Wienand <ianw@ieee.org> Some fixes...

* read_config_file.c: initialise pt stack argument to stop warning
* summary.c: make show_summary() obey -C for demangaling function names
/external/ltrace/sysdeps/linux-gnu/trace.c
5c3fe0697b202cc7d95e90459de0fb312b297b27 14-Jun-2004 Juan Cespedes <cespedes@debian.org> Version 0.3.33

* Fixed two bugs, thanks to Mauro Meneghin <G1ld0@lycos.it>:
+ Cope correctly with breakpoint values greater than
sizeof(long) bytes
+ Fixed small bug in option -r (closes: Bug#212792)
* Show help if no (or few) arguments are given, just like
strace and fenris (thanks, Tomasz Wegrzanowski <taw@users.sf.net>)
* Some fixes from Jakub Bogusz <qboosh@pld-linux.org>:
+ Small 64-bit cleanup of code
+ support for more than 6 function arguments on amd64
+ Adapted SPARC port from Jakub Jelinek <jakub@redhat.com>
+ Added alpha support
/external/ltrace/sysdeps/linux-gnu/trace.c
504a385858a49352bcfceca444ba4f1a7bfd20cd 04-Feb-2003 Juan Cespedes <cespedes@debian.org> Version 0.3.31

* Added a lot of functions to ltrace.conf,
thanks to Jakub Jelinek <jakub@redhat.com> (closes: Bug#144518)
* Fixed off-by-one problem in checking syscall number
* Removed some warnings
/external/ltrace/sysdeps/linux-gnu/trace.c
8f8282f72eaeadc5419cd5470100e8dcaba5b7fd 03-Mar-2002 Juan Cespedes <cespedes@debian.org> Version 0.3.23

* Fixed missing include <unistd.h> in trace.c
* One arch-dependent function less (continue_after_breakpoint)
* Fixed S/390 port (it didn't compile yet...)
/external/ltrace/sysdeps/linux-gnu/trace.c
8cc1b9d456c8f41e3a8cc0d3ec0d77eb779cb7bb 01-Mar-2002 Juan Cespedes <cespedes@debian.org> Version: 0.3.18

* Simplified arch-dependent stuff
* Updated list of syscalls and signals to Linux 2.4.18
* Unified coding-style of all function declarations
* Do not indent lines indicating signals, exit codes, etc
* Updated description
* fix off-by-one problem in checking syscall number (Tim Waugh
<twaugh@redhat.com> fixed this problem in RedHat two years ago;
thank you for NOT noticing me...)
/external/ltrace/sysdeps/linux-gnu/trace.c
5916fda0d07da90cac8a78cbfa73374d81b150be 25-Feb-2002 Juan Cespedes <cespedes@debian.org> Version: 0.3.17

* Added a bit more debugging
* Fixed display of return address in nested functions
* Added posibility to exit from a function different from the last
* called
one (this fixes "ltrace gnome-terminal", for example)
/external/ltrace/sysdeps/linux-gnu/trace.c
5b3ffdf2e696273d38434ff7b3c26349fff5a0ea 02-Jul-2001 Juan Cespedes <cespedes@debian.org> Version: 0.3.11

* Clean up lintian bugs
* Fixed small bug reading start of arguments in config file
* Keep a stack of nested calls (Morten Eriksen, 1999-07-04)
* Add "--indent" option (Morten Eriksen, 1999-07-04)
* cleans up connection between a breakpoint address and
a call instance (Morten Eriksen, 1999-07-04)
* New Standards-Version (3.5.5)
/external/ltrace/sysdeps/linux-gnu/trace.c
1b9cfd6ad305ad909e8ff17139111a7c78f01464 30-Aug-1999 Juan Cespedes <cespedes@debian.org> Version: 0.3.8

* glibc-2.1 does no longer need `_GNU_SOURCE' defined to use <getopt.h>
* Changed description of package; adopted Red Hat's one
(thanks to whoever wrote it)
* Close all the file descriptors used before executing program (close-on-exec)
* Updated copyright file for new location /usr/share/common-licenses/GPL.
* Used GNU autoconf instead of "uname" to guess host system type
* Install man page in /usr/share/man instead of /usr/man
* Added a few functions to /etc/ltrace.conf
* Updated list of syscalls and signals to linux-2.2.12
* Fixed bugs in C++ demangle (Morten Eriksen <mortene@sim.no>)
* New Standards-Version: 3.0.1 (but keeping docs in /usr/doc)
/external/ltrace/sysdeps/linux-gnu/trace.c