diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2018-07-03 19:20:56 +0200 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2018-07-03 21:05:54 +0200 |
commit | 1c2bc07facc5cac4bd7cb87a1579216bb79a7ae1 (patch) | |
tree | 17dddf06628af517f36c3b4adb7448d04fd8bc9c /tests/examples/autotools.py | |
parent | 9067e269a9f2866e659ef33a69aad72b01cb6633 (diff) | |
download | buildstream-sam/debug-symbols-location.tar.gz |
Don't strip pathname from debug symbol filessam/debug-symbols-location
When GDB looks for debug symbols it looks for the full path of the file
inside the configured debug-file-directory. For example, if the
debug-file-directory is set to a default of /usr/lib/debug, and you are
debugging /usr/bin/python3, GDB will look for its debug symbols at this
location: /usr/lib/debug/usr/bin/python3.
BuildStream has been putting all debug files inside /usr/lib/debug
under their $(basename), so in the above example GDB would fail to find
any debug symbols for /usr/bin/python3 because they would be in the
incorrect locatoin of /usr/lib/debug/python3.
Diffstat (limited to 'tests/examples/autotools.py')
-rw-r--r-- | tests/examples/autotools.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/examples/autotools.py b/tests/examples/autotools.py index c774776fb..37f6ed0e3 100644 --- a/tests/examples/autotools.py +++ b/tests/examples/autotools.py @@ -28,7 +28,9 @@ def test_autotools_build(cli, tmpdir, datafiles): assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin', '/usr/share', '/usr/lib/debug', - '/usr/lib/debug/hello', '/usr/bin/hello', + '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin', + '/usr/lib/debug/usr/bin/hello', + '/usr/bin/hello', '/usr/share/doc', '/usr/share/doc/amhello', '/usr/share/doc/amhello/README']) |