Closed
Description
When making an executable, rustc should emit DW_AT_main_subprogram
on the CU and the subprogram DIE for the main function that is going to be executed by main
.
This marker would allow gdb's start
command to find the correct spot in user code to set an initial breakpoint. (This doesn't work yet, see https://sourceware.org/bugzilla/show_bug.cgi?id=16264 - but could be made to work.)