summaryrefslogtreecommitdiffstats
path: root/lib/libdwarf/dwarf_init.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2011-05-07 01:05:31 +0000
committerobrien <obrien@FreeBSD.org>2011-05-07 01:05:31 +0000
commit3a533dcf25ee60b843e4e6c6c10a76fd603629c8 (patch)
treeed859674e81264f55de2412db17619c8de1fee86 /lib/libdwarf/dwarf_init.c
parente97ce6dc83fc8850d25f1c57197b68ff3586254e (diff)
downloadFreeBSD-src-3a533dcf25ee60b843e4e6c6c10a76fd603629c8.zip
FreeBSD-src-3a533dcf25ee60b843e4e6c6c10a76fd603629c8.tar.gz
Add the ability to search for all the inlined instances of a given function.
Reviewed by: jb Obtained from: Juniper Networks
Diffstat (limited to 'lib/libdwarf/dwarf_init.c')
-rw-r--r--lib/libdwarf/dwarf_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libdwarf/dwarf_init.c b/lib/libdwarf/dwarf_init.c
index 30b7b0f..95642a0 100644
--- a/lib/libdwarf/dwarf_init.c
+++ b/lib/libdwarf/dwarf_init.c
@@ -578,6 +578,9 @@ dwarf_init_info(Dwarf_Debug dbg, Dwarf_Error *error)
offset = next_offset;
}
+ /* Build the function table. */
+ dwarf_build_function_table(dbg);
+
return ret;
}
@@ -686,6 +689,7 @@ dwarf_elf_init(Elf *elf, int mode, Dwarf_Debug *ret_dbg, Dwarf_Error *error)
dbg->dbg_mode = mode;
STAILQ_INIT(&dbg->dbg_cu);
+ STAILQ_INIT(&dbg->dbg_func);
*ret_dbg = dbg;
OpenPOWER on IntegriCloud