Re: [PATCH] Fix for incorrect breakpoint set in case of flang compiled binary

Tom Tromey
2020-08-18T19:21:21Z

Andrew> We have the files producer.{c,h} that wrap up tests just like this
Andrew> one. If feels like we should add a new test to those files that
Andrew> matches all clang backend based compilers, then make use of this new
Andrew> test throughout.

Andrew> I'd keep the name of the test fairly generic, the important thing here
Andrew> is the backend technology right, not the frontend language? So if I
Andrew> added a new language with a clang backend I'd likely run into the same
Andrew> issues.

See also the hilarious

https://github.com/rust-lang/rust/issues/41252#issuecomment-293676579

Also

https://sourceware.org/bugzilla/show_bug.cgi?id=21470

Whenever this comes up, I think to myself that gdb should assume correct
DWARF by default, and have to sniff for the compilers that break the
rules -- mostly GCC I suppose :-(

Tom