aboutsummaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-31 03:29:11 +0100
committerPetr Machata <pmachata@redhat.com>2012-10-31 03:29:11 +0100
commit96f0482fa1d15f4e6be75b49ff5fa8d77602be7b (patch)
tree921cb70354311c87909bbb463a72975c1ac7a977 /proc.c
parent3240554e943bf773aa57b7e3e3bf80d7102a8b10 (diff)
downloadltrace-96f0482fa1d15f4e6be75b49ff5fa8d77602be7b.tar.gz
Debug messages around latent and delayed symbols
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 54909c9..ec29aa1 100644
--- a/proc.c
+++ b/proc.c
@@ -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);
}