• Anton Blanchard's avatar
    Fix debuginfo search on Ubuntu · 9d5f9721
    Anton Blanchard authored
    bcc on Ubuntu picks up the glibc binary instead of the debuginfo file
    because find_debug_via_debuglink() doesn't handle symbolic or hard
    links when checking if two paths point to the same file.
    
    Add a helper, same_file() which uses the device and inode to check if
    the two paths do point to the same file.
    Signed-off-by: default avatarAnton Blanchard <anton@ozlabs.org>
    9d5f9721
bcc_elf.c 25.7 KB