D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11530 - need gdb test suite
Summary: need gdb test suite
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords: bounty, DebugInfo
Depends on:
Blocks:
 
Reported: 2013-11-16 10:36 UTC by Martin Nowak
Modified: 2015-06-17 21:02 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2013-11-16 10:36:39 UTC
I'm about to overhaul dmd's DWARF information and will try to fix the outstanding issues. It seems (subjective) that the current state is worse than a year ago.
So in any case we'll need a test suite to avoid regressions.
In the best case we find/write a tool that verifies correct debug information.
Otherwise we could try to automate gdb sessions but this is probably a very slow test.
Comment 1 Martin Nowak 2013-11-30 13:29:33 UTC
A simple solution would be to process the output of readelf or dwarfdump.
Comment 2 Andrei Alexandrescu 2014-01-10 17:32:11 UTC
$50 bounty placed
Comment 3 Iain Buclaw 2014-02-14 02:41:31 UTC
Martin, wouldn't that be very DMD-specific?


Only ask because currently I'm in the process of writing a lot of tests for the GDB testsuite to ensure that GDB behaves correctly for both gdb sessions and evaluating expressions sent to GDB.
Comment 4 Martin Nowak 2014-02-14 03:03:12 UTC
Yeah, that could easily turn into somethin DMD specific.
Comment 6 github-bugzilla 2015-03-14 03:38:04 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c775004af512810da1048f42df6cf6f9d2de4cba
fix Issue 11530 - need gdb test suite

- support gdb in d_do_test tool
- add a basic test and 2 regression tests

https://github.com/D-Programming-Language/dmd/commit/2d6fc0e4819e9bf6c7c1a5e9affde44f3cedd3b8
Merge pull request #4475 from MartinNowak/gdb_tests

fix Issue 11530 - need gdb test suite
Comment 7 github-bugzilla 2015-03-14 12:15:35 UTC
Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c733d5cf5796f3fa744f690ee633d2a985cc238f
Merge pull request #4475 from MartinNowak/gdb_tests

fix Issue 11530 - need gdb test suite
Comment 8 github-bugzilla 2015-04-11 12:24:59 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/c733d5cf5796f3fa744f690ee633d2a985cc238f
Merge pull request #4475 from MartinNowak/gdb_tests