]> sourceware.org Git - valgrind.git/commit
debuginfo.c: Add more hooks for lazy loading debuginfo
authorAaron Merey <amerey@redhat.com>
Wed, 20 Sep 2023 17:00:02 +0000 (13:00 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 22 Sep 2023 20:02:59 +0000 (16:02 -0400)
commiteb0b07f4fc63fec057f1b59cce8cb308110a4552
treef6cd2109b68f8a4b0836a34fe545b3eae9992024
parent42aa6cd1cd7845478cbe6ae2a454a7edc0bde587
debuginfo.c: Add more hooks for lazy loading debuginfo

Add calls to di_load_di in search_one_{symtab,loctab,cfitab} to ensure
that debuginfo is always loaded before searching these tables.

This fixes a bug introduced in commit 60f7e89ba32 that results in
callgrind failing to read source filenames from debuginfo.

Also add a test which checks that callgrind successfully finds a
filename from debuginfo.

Co-Authored-By: Philippe Waroquiers <philippe.waroquiers@skynet.be>
callgrind/tests/Makefile.am
callgrind/tests/find-source.post.exp [new file with mode: 0644]
callgrind/tests/find-source.stderr.exp [new file with mode: 0644]
callgrind/tests/find-source.vgtest [new file with mode: 0644]
coregrind/m_debuginfo/priv_storage.h
coregrind/m_debuginfo/storage.c
This page took 0.030198 seconds and 5 git commands to generate.