aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dlang/dmain.c
AgeCommit message (Collapse)AuthorFilesLines
2024-01-12Update copyright year range in header of all files managed by GDBAndrew Burgess1-1/+1
This commit is the result of the following actions: - Running gdb/copyright.py to update all of the copyright headers to include 2024, - Manually updating a few files the copyright.py script told me to update, these files had copyright headers embedded within the file, - Regenerating gdbsupport/Makefile.in to refresh it's copyright date, - Using grep to find other files that still mentioned 2023. If these files were updated last year from 2022 to 2023 then I've updated them this year to 2024. I'm sure I've probably missed some dates. Feel free to fix them up as you spot them.
2023-03-27[gdb/testsuite] Add test-case gdb.dlang/dlang-start-2.expTom de Vries1-0/+31
For test-case gdb.dlang/dlang-start.exp, I run into: ... UNSUPPORTED: gdb.dlang/dlang-start.exp: require failed: can_compile d ... My distro has no support for gdc, but I'd like to have the test-case running and passing, so let's rewrite the test-case using dwarf assembly and add it alongside (rather than replacing it, because it's good to use actual compiler output if we have it available). My distro does have a package providing dmd, so let's mimic that debug info in the dwarf assembly. This gives us: ... (gdb) start ^M Temporary breakpoint 1 at 0x4004ab^M Starting program: dlang-start-2 ^M ^M Temporary breakpoint 1, 0x00000000004004ab in _Dmain ()^M ... The "_Dmain ()" should probably be "D main", I've filed PR30276 about that. Also add a "show language" to check that we automatically set the language correctly to D. Note that the dwarf assembly also describes main, otherwise the test-case doesn't function as regression test for commit 47fe57c9281 ("Fix "start" for D, Rust, etc"). Tested on x86_64-linux.