diff options
author | Petr Machata <pmachata@redhat.com> | 2012-10-31 03:29:11 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-10-31 03:29:11 +0100 |
commit | 96f0482fa1d15f4e6be75b49ff5fa8d77602be7b (patch) | |
tree | 921cb70354311c87909bbb463a72975c1ac7a977 /proc.c | |
parent | 3240554e943bf773aa57b7e3e3bf80d7102a8b10 (diff) | |
download | ltrace-96f0482fa1d15f4e6be75b49ff5fa8d77602be7b.tar.gz |
Debug messages around latent and delayed symbols
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -728,8 +728,12 @@ breakpoint_for_symbol(struct library_symbol *libsym, struct Process *proc) assert(proc->leader == proc); /* Don't enable latent or delayed symbols. */ - if (libsym->latent || libsym->delayed) + if (libsym->latent || libsym->delayed) { + debug(DEBUG_FUNCTION, + "delayed and/or latent breakpoint pid=%d, %s@%p", + proc->pid, libsym->name, libsym->enter_addr); return 0; + } bp_addr = sym2addr(proc, libsym); @@ -786,6 +790,7 @@ proc_activate_latent_symbol(struct Process *proc, { assert(libsym->latent); libsym->latent = 0; + debug(DEBUG_FUNCTION, "activated latent symbol"); return breakpoint_for_symbol(libsym, proc); } @@ -795,6 +800,7 @@ proc_activate_delayed_symbol(struct Process *proc, { assert(libsym->delayed); libsym->delayed = 0; + debug(DEBUG_FUNCTION, "activated delayed symbol"); return breakpoint_for_symbol(libsym, proc); } |