summaryrefslogtreecommitdiff
path: root/tests/examples/flatpak-autotools.py
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2018-07-03 19:20:56 +0200
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-22 11:36:29 +0000
commit0bcfdfb9b52ef18ffc5b6982f8dce46d46159c62 (patch)
tree2fd91edee5c39da49ea71161fb8b71be6a769e2e /tests/examples/flatpak-autotools.py
parent2872bc6dd23e484383721d65721b42ff1affc0b3 (diff)
downloadbuildstream-tristan/debug-symbols-location-1.2.tar.gz
Don't strip pathname from debug symbol filestristan/debug-symbols-location-1.2
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/flatpak-autotools.py')
-rw-r--r--tests/examples/flatpak-autotools.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/examples/flatpak-autotools.py b/tests/examples/flatpak-autotools.py
index 3965725c7..2d02755fc 100644
--- a/tests/examples/flatpak-autotools.py
+++ b/tests/examples/flatpak-autotools.py
@@ -47,8 +47,10 @@ 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/share/doc', '/usr/share/doc/amhello',
+ '/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'])