History log of /external/ltrace/prototype.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b5c837f545342b6017fe6ec7aa60c1fc866fde06 06-Nov-2013 Petr Machata <pmachata@redhat.com> Replace a chain of stpcpy's with a sprintf

- That's clearer and doesn't require _POSIX_SOURCE defines (that are
missing anyway)
/external/ltrace/prototype.c
d2154eae286064c4114ec924186535961dfaad79 06-Nov-2013 Petr Machata <pmachata@redhat.com> Fix use-after-free
/external/ltrace/prototype.c
98a7dce70986f2394d22ee5dd8ed355ceb2104b4 23-Oct-2013 Petr Machata <pmachata@redhat.com> Look up protolibs whose name partially matches the loaded DSO

- The intention here is to allow matches of libc.so.conf for
libc.so.6. Typically different sonames imply different binary
interfaces, but for libc, we know that most interfaces won't change.
/external/ltrace/prototype.c
c65c24a7e4645559a0fb050ff5a96ec248827562 16-Oct-2013 Petr Machata <pmachata@redhat.com> Extract the logic for creating void* type to type_get_voidptr
/external/ltrace/prototype.c
aa3db6b1234da0e542ba7782849cf200d0d91c1c 23-Oct-2013 Petr Machata <pmachata@redhat.com> Replace os_get_ltrace_conf_filename with os_get_ltrace_conf_filenames

- I.e. allow returning a list of filenames, as opposed to a single
home directory name. This is to implement exactly the legacy config
file behavior on Linux.
/external/ltrace/prototype.c
82f748d1bc2b95d594327ad15f3a6908070dd5c3 23-Oct-2013 Petr Machata <pmachata@redhat.com> System calls are now part of dedicated symbol library

- This symbol library is still special in that symbols are created on
demand and never actually added. It just serves as a link to
protolibrary with system call prototypes, and has a name (SYS).

- Prototypes for system calls were moved to a dedicated prototype
library called syscalls.conf.

- Because it's undesirable to look up syscall prototypes in anything
but the dedicated syscall protolib, prototype.c/.h now understand
that some lookups shouldn't be done recursively (and so we never
pick the definition from -F file that just happens to have the same
name as a system call). The good thing is that now libraries can
actually use symbols named SYS_something without clashing with
system call prototypes.

- One test case needed to be updated, because we now display system
calls as something@SYS instead of SYS_something.
/external/ltrace/prototype.c
97485501f87e5452bc49721003ebfb9717f497b6 26-Sep-2013 Peter Wu <lekensteyn@gmail.com> Fix clang warning (-Wduplicate-decl-specifier)

DICT_INIT defines its key type as constant already, no need to duplicate
that in callers of DICT_INIT.

Signed-off-by: Peter Wu <lekensteyn@gmail.com>
/external/ltrace/prototype.c
f70812ec281a829ca7a758337aacec58eca41550 18-Mar-2013 Petr Machata <pmachata@redhat.com> Fix exit before parsing options

- The function destroy_global_config was called from normal_exit even
if init_global_config hadn't been called before, such as when ltrace
was run with no command line arguments. This led to crashes. We
avoided similar crashes due to exit from init_global_config by
calling _Exit instead.

- Instead, schedule execution of destroy_global_config only after it
is known that init_global_config was successful. Replace the clumsy
_Exit calls again by plain exit.
/external/ltrace/prototype.c
b1ab2aefa199ea8e14e29bac78ae71030c2d4863 07-Jan-2013 Petr Machata <pmachata@redhat.com> Consolidate two duplicate conditional strdup wrappers to strdup_if

- Convert callers in prototype.c and library.c
- Current placement in library.c is somewhat arbitrary. There
currently doesn't seem to be a more suitable place.
- The behavior subtly changed: in case of failure, RET is now
unaffected.
/external/ltrace/prototype.c
e56fe644f725f2c1c8308e7c2b5f9cd02e89eed0 07-Jan-2013 Petr Machata <pmachata@redhat.com> Protolib cache fails when attempt is made to cache NULL
/external/ltrace/prototype.c
f9f3df4c9e232dc06b769daa5edf489675c5cdfc 06-Jan-2013 Petr Machata <pmachata@redhat.com> Don't destroy global protolib cache when (pre-)initialization of the same fails
/external/ltrace/prototype.c
7f1d856ea4882a23461886d0f589244cc11f0b2f 13-Dec-2012 Petr Machata <pmachata@redhat.com> Fix memory errors

With this, valgrind run of ltrace on x86_64 is clean.
/external/ltrace/prototype.c
4c4e4012db96aee7ef236c0684690842fb6a3e47 06-Dec-2012 Petr Machata <pmachata@redhat.com> Load $HOME/.ltrace.conf and @sysconfdir@/ltrace.conf if available

When one of these is found, it becomes part of implicit import module.
/external/ltrace/prototype.c
a5e983bd5555c496a209f3e3a48e2826940b09f5 05-Dec-2012 Petr Machata <pmachata@redhat.com> Add ownership tracking to prototype module
/external/ltrace/prototype.c
8ab151c2a1912819e77f83c154c18bc894bc5785 05-Dec-2012 Petr Machata <pmachata@redhat.com> consider_config_dir should return protolib, not callback status
/external/ltrace/prototype.c
08cdf328add7b723b94b151866e5d0173662f6c6 05-Dec-2012 Petr Machata <pmachata@redhat.com> Start using per-library config files

We have one global cache, initialized in init_global_config.
output.c was adjusted to load per-library config files on
demand from that cache.
/external/ltrace/prototype.c
82ce0f8e3aefc3f833e7059f3cedeacedca0cad2 05-Dec-2012 Petr Machata <pmachata@redhat.com> Add code for protolib cache

This doesn't yet handle autoloading of /etc/ltrace.conf, but the algorithms
are all in.
/external/ltrace/prototype.c
f7650d1e1c09e360a0cd27ee99b051cc9b127091 28-Nov-2012 Petr Machata <pmachata@redhat.com> Port prototype module to new dictionary
/external/ltrace/prototype.c
3ac9b91974678878889776221c390f39f5c2ffcf 24-Nov-2012 Petr Machata <pmachata@redhat.com> Implement more of prototype.{c,h}
/external/ltrace/prototype.c
ebc56a70e20ca0b3fc49c0eb5fc83e56c5e1fa5b 17-Dec-2012 Petr Machata <pmachata@redhat.com> Introduce a module for managing prototypes and prototype libraries

This is to be used, eventually, for keeping one prototype library per DSO.
Right now we only have one prototype library, like before: g_prototypes.
Typedef submodule is not yet used, only prototypes are stored in the
protolib as of now.

The change in Makefile.am is actually an inclusion of prototype.{c,h}
followed by a rewrap of name lists.
/external/ltrace/prototype.c