Updates to the rest of the debuginfo module to track directory names.
The only interesting part is a change of signature of
VG_(get_filename_linenum) so that callers can optionally request
directory info too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3909 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index 807037f..64c90c3 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -165,8 +165,12 @@
static void get_debug_info(Addr instr_addr, Char file[FILE_LEN],
Char fn[FN_LEN], Int* line)
{
- Bool found_file_line = VG_(get_filename_linenum)(instr_addr, file,
- FILE_LEN, line);
+ Bool found_file_line = VG_(get_filename_linenum)(
+ instr_addr,
+ file, FILE_LEN,
+ NULL, 0, NULL,
+ line
+ );
Bool found_fn = VG_(get_fnname)(instr_addr, fn, FN_LEN);
if (!found_file_line) {