]> git.lizzy.rs Git - rust.git/commit
Auto merge of #38109 - tromey:main-subprogram, r=michaelwoerister
authorbors <bors@rust-lang.org>
Thu, 9 Feb 2017 17:09:50 +0000 (17:09 +0000)
committerbors <bors@rust-lang.org>
Thu, 9 Feb 2017 17:09:50 +0000 (17:09 +0000)
commit405327635419e22a956dfe8f7caf4817c8ae5e93
treeff15270c6e603dc05e997510737a9c8ac488cc6c
parente7fc53b8f0595d9b5be6a3b64d29d3cfed7c7199
parentb037c5211b9ba496252af5a0369b48649f91ccc8
Auto merge of #38109 - tromey:main-subprogram, r=michaelwoerister

Emit DW_AT_main_subprogram

This changes rustc to emit DW_AT_main_subprogram on the "main" program.
This lets gdb suitably stop at the user's main in response to
"start" (rather than the library's main, which is what happens
currently).

Fixes #32620
r? michaelwoerister
src/librustc_llvm/ffi.rs
src/librustc_trans/debuginfo/mod.rs
src/rustllvm/RustWrapper.cpp