| commit | e9aebd6cfb4710f96b27b5d268208ddd7f0d9eac | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Sun Mar 25 01:38:53 2012 +0100 |
| committer | Petr Machata <pmachata@redhat.com> | Thu Apr 19 01:22:33 2012 +0200 |
| tree | 3cd1a1bd5d39e154bff3dac6bcab43a58ef8bcf5 | |
| parent | 8cce1193ebd35cb5a8b288bc7325cdda1b8ffe50 [diff] [blame] |
New interface breakpoint_name
diff --git a/breakpoints.c b/breakpoints.c index 048c4e3..08e15cc 100644 --- a/breakpoints.c +++ b/breakpoints.c
@@ -140,6 +140,13 @@ assert(sbp->enabled >= 0); } +const char * +breakpoint_name(const struct breakpoint *bp) +{ + assert(bp != NULL); + return bp->libsym != NULL ? bp->libsym->name : NULL; +} + static void enable_bp_cb(void *addr, void *sbp, void *proc) {