-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solve the problem of no debugging symbols in high versions of glibc #17
Comments
@b0ldfrev Many thanks. It will be great if you create a pull request and become a contributer. |
As for the problem of GDB, maybe you can write it down in the README within your PR? |
ok , i will do this. |
#18 it may not be a good idea to copy '.build-id' to '/usr/lib/debug/.build-id/',since it corrupts the system debug symbols. as you point out, just updating gdb can solve the problem? |
Copying .build-id to the system directory will not overwrite the original system debug symbols, because the version id are completely different. If there are two symbol files with the same name, that means that the two files and symbols are consistent. |
your solution is correct. however, for security reasons, i don't want others to use my tool under root previledge only. can you provide a solution to let users decide? maybe add a command line option? |
Do you mean to add a Usage to the download program to illustrate the situation? |
correct. for eample: |
thanks,it's working |
Solve the problem of no debugging symbols in high versions of glibc
Add
cp -r $tmp/usr/lib/debug/.build-id/* /usr/lib/debug/.build-id/ 2>/dev/null
to the line above therm -rf $tmp
command of the extract file.The extract script after patch is as follows
Note: Because files will be copied to the
.build-id
directory of the system, root privileges are required every time you run./download
.Upgrade GDB version (may be required)
If your environment is ubuntu16 or 18, then the default GDB version is lower (GDB < 8.3) and does not support parsing the symbol files in .build-id. In this case, you need to upgrade the GDB version.
Version 9.2 is recommended, use the following methods to complete the upgrade
The text was updated successfully, but these errors were encountered: