From 2cbd7072b18d7eb01c51ff05c7e12ca2bd555d01 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sun, 13 Sep 2015 12:49:05 -0400 Subject: debug/dwarf: add test for split DWARF This adds a test that debug/dwarf can read the skeleton DWARF data from a split DWARF image (though it doesn't currently support piecing the external DWARF data back together). This should work because there's nothing particularly different about skeleton DWARF data, but previously failed because of poor handling of unrecognized attributes. Updates #12592. Change-Id: I2fc5f4679883b05ebd7ec9f0b5c398a758181a32 Reviewed-on: https://go-review.googlesource.com/14542 Reviewed-by: Ian Lance Taylor Reviewed-by: jcd . --- src/debug/dwarf/testdata/split.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/debug/dwarf/testdata/split.c (limited to 'src/debug/dwarf/testdata/split.c') diff --git a/src/debug/dwarf/testdata/split.c b/src/debug/dwarf/testdata/split.c new file mode 100644 index 0000000000..0ef3427d2e --- /dev/null +++ b/src/debug/dwarf/testdata/split.c @@ -0,0 +1,5 @@ +// gcc -gsplit-dwarf split.c -o split.elf + +int main() +{ +} -- cgit v1.3