<p dir="ltr">Mostly that the only platform we knew it worked on was Linux and didn't want to make it error out. We can make it not error for all elf targets for sure if you'd like to give it a go. Needs a relatively recent binutils and GDB (currently no lldb support).</p>
<p dir="ltr">-eric</p>
<br><div class="gmail_quote">On Fri, Mar 20, 2015, 6:57 AMĀ Ed Maste <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In r175814 -gsplit-dwarf was made into a no-op on non-Linux platforms,<br>
but there's no explanation in the comment explaining what lead to the<br>
change. -gsplit-dwarf requires a newer binutils, but that is also true<br>
on Linux.<br>
<br>
I'm looking into this for FreeBSD, and wonder if I should change the<br>
three or so isOSLinux() conditions for split-dwarf to (isOSLinux() ||<br>
isOSFreeBSD()), just remove them, or something else. I'm not fully<br>
aware of the situation on Windows or Darwin, but it seems we could<br>
handle it the same way on all ELF targets, at least.<br>
</blockquote></div>