Bug 11530 – need gdb test suite

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-16T10:36:00Z
Last change time
2015-06-17T21:02:03Z
Keywords
bounty, symdeb
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2013-11-16T10:36:39Z
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 by code — 2013-11-30T13:29:33Z
A simple solution would be to process the output of readelf or dwarfdump.
Comment #2 by andrei — 2014-01-10T17:32:11Z
$50 bounty placed
Comment #3 by ibuclaw — 2014-02-14T02:41:31Z
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 by code — 2014-02-14T03:03:12Z
Yeah, that could easily turn into somethin DMD specific.
Comment #5 by ibuclaw — 2014-05-18T16:04:41Z
Comment #6 by github-bugzilla — 2015-03-14T03:38:04Z
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 by github-bugzilla — 2015-03-14T12:15:35Z
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 by github-bugzilla — 2015-04-11T12:24:59Z
Comment #9 by github-bugzilla — 2015-06-17T21:02:03Z