From e39c0b099873bb7f84ad6278ba214f0d66eb4214 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 8 Jun 2009 14:20:44 -0300 Subject: [PATCH] dwarves: Introduce function__addr method Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dwarves.h b/dwarves.h index e16236f..75d2078 100644 --- a/dwarves.h +++ b/dwarves.h @@ -688,6 +688,11 @@ size_t function__fprintf_stats(const struct tag *tag_self, const char *function__prototype(const struct function *self, const struct cu *cu, char *bf, size_t len); +static __pure inline function__addr(const struct function *self) +{ + return self->lexblock.ip.addr; +} + static __pure inline uint32_t function__size(const struct function *self) { return self->lexblock.size;