February 17, 2020
On Monday, 17 February 2020 at 02:54:09 UTC, Walter Bright wrote:
> I hear this now and then about the DWARF output, but there are ZERO bug reports on it.

I just searched "dwarf" on bugzilla and several came up

https://issues.dlang.org/buglist.cgi?quicksearch=dwarf&list_id=230166

from 2016
https://issues.dlang.org/show_bug.cgi?id=15747

from 2020
https://issues.dlang.org/show_bug.cgi?id=20510


and many more.

I haven't confirmed these myself but it is pretty obviously not zero in bugzilla.

(my personal experience btw is that bugzilla is where issues go to be ignored, lost, or forgotten for years.)

February 16, 2020
On 2/16/2020 6:07 PM, Mathias Lang wrote:
> Since PR are welcome, can you please take care of https://github.com/dlang/dmd/pull/10200 which hasn't been reviewed for 6+ months ?

It fails all tests on Posix:

ERROR: dmd/target.d(408): Error: no property `isPOSIX` for type `Param`

Also, it's pretty hard to deduce the strategy from the low level detail.
February 16, 2020
On 2/16/2020 7:02 PM, Adam D. Ruppe wrote:
> (my personal experience btw is that bugzilla is where issues go to be ignored, lost, or forgotten for years.)

Anyone can submit PRs to fix bugzilla issues, including you.
February 16, 2020
On 2/16/2020 7:02 PM, Adam D. Ruppe wrote:
> I just searched "dwarf" on bugzilla and several came up
> 
> https://issues.dlang.org/buglist.cgi?quicksearch=dwarf&list_id=230166

I see the situation has changed fairly recently. That's good. I haven't looked at dwarf for a while.
February 17, 2020
On Monday, 17 February 2020 at 02:54:09 UTC, Walter Bright wrote:
> On 2/16/2020 6:07 PM, Mathias Lang wrote:
>> (DWARF debug infos are completely broken on OSX),
> I hear this now and then about the DWARF output, but there are ZERO bug reports on it.
>
> I use gdb myself on OSX and Linux, and while I don't much care for gdb, it works.

Really ?

- I mentioned last time in the Skype meeting;
- we put a bounty on it (blog post: https://dlang.org/blog/2019/08/17/bug-bounties-have-arrived/ and bounty itself: https://www.flipcause.com/secure/cause_pdetails/NjI2NjQ=)
- there is a bugzilla issue: https://issues.dlang.org/show_bug.cgi?id=20460
- I opened a PR detailing the issue in great details: https://github.com/dlang/dmd/pull/10722

And people are not going to mention "DWARF" in bugzilla, they're going to say "stack traces are broken but I can't reproduce with a small example" (in this case it depends on the order the root modules are passed to the compiler). I was lucky to be familiar enough with the compiler to notice the pattern, but it did take me a while.

Also which OS version / gdb version are you using ? On a relatively recent Mac, GDB barely works and LLDB is a much better place to get started.
February 16, 2020
On 2/16/2020 9:44 PM, Mathias Lang wrote:
> On Monday, 17 February 2020 at 02:54:09 UTC, Walter Bright wrote:
>> I use gdb myself on OSX and Linux, and while I don't much care for gdb, it works.
> 
> Really ?

Well, somehow I debugged the compiler on OSX.


> Also which OS version / gdb version are you using ?

Don't recall, but old.

February 17, 2020
On Monday, 17 February 2020 at 07:11:47 UTC, Walter Bright wrote:
> On 2/16/2020 9:44 PM, Mathias Lang wrote:
>> On Monday, 17 February 2020 at 02:54:09 UTC, Walter Bright wrote:
>>> I use gdb myself on OSX and Linux, and while I don't much care for gdb, it works.
>> 
>> Really ?
>
> Well, somehow I debugged the compiler on OSX.
>
> [..]

I think Mathias was replying to this part:

> I hear this now and then about the DWARF output, but there are ZERO bug reports on it.
February 17, 2020
On Monday, 17 February 2020 at 05:44:32 UTC, Mathias Lang wrote:

> Really ?

Yeah, I've tested with DMD combined with GDB and it works. But it doesn't work with LLDB. LDC of course work together with LLDB.

--
/Jacob Carlborg

February 17, 2020
On Monday, 17 February 2020 at 07:11:47 UTC, Walter Bright wrote:

> Don't recall, but old.

You can run `sw_vers -productVersion` in the terminal to find out.

--
/Jacob Carlborg

February 17, 2020
On Monday, 17 February 2020 at 02:54:09 UTC, Walter Bright wrote:

> I hear this now and then about the DWARF output, but there are ZERO bug reports on it.

As others have mentioned, the bug reports might not include the word "dwarf".

> I use gdb myself on OSX and Linux, and while I don't much care for gdb, it works.

This explains a lot, and is also what I suspected. I'm guessing you haven't updated your tools since the original port of DMD to macOS. Nobody cares about GDB on macOS anymore. Apple has since long abandoned the GCC toolchain and now relies exclusively on the LLVM toolchain, as I've mentioned in several places on several occasions. That means Clang and LLDB.

There are several issues reported for this:

https://issues.dlang.org/show_bug.cgi?id=18527
https://issues.dlang.org/show_bug.cgi?id=18612

You might want to search for "LLDB" as well: https://issues.dlang.org/buglist.cgi?quicksearch=lldb

--
/Jacob Carlborg