Fix debuginfo search on Ubuntu
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: Anton Blanchard <anton@ozlabs.org>
Showing
Please register or sign in to comment