Skip to content

emit DW_AT_main_subprogram #32620

Description

@tromey

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions