File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,12 @@ pub fn debugger_scripts(build: &Build,
254254 install ( & build. src . join ( "src/etc/" ) . join ( file) , & dst, 0o644 ) ;
255255 } ;
256256 if host. contains ( "windows-msvc" ) {
257- // no debugger scripts
257+ // windbg debugger scripts
258+ install ( & build. src . join ( "src/etc/rust-windbg.cmd" ) , & sysroot. join ( "bin" ) ,
259+ 0o755 ) ;
260+
261+ cp_debugger_script ( "natvis/libcore.natvis" ) ;
262+ cp_debugger_script ( "natvis/libcollections.natvis" ) ;
258263 } else {
259264 cp_debugger_script ( "debugger_pretty_printers_common.py" ) ;
260265
Original file line number Diff line number Diff line change 1+ @ echo off
2+ setlocal
3+
4+ REM Copyright 2014 The Rust Project Developers. See the COPYRIGHT
5+ REM file at the top-level directory of this distribution and at
6+ REM http://rust-lang.org/COPYRIGHT.
7+ REM
8+ REM Licensed under the Apache License, Version 2.0 < LICENSE-APACHE or
9+ REM http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
10+ REM < LICENSE-MIT or http://opensource.org/licenses/MIT> , at your
11+ REM option. This file may not be copied, modified, or distributed
12+ REM except according to those terms.
13+
14+ for /f " delims=" %%i in ('rustc --print=sysroot') do set rustc_sysroot = %%i
15+
16+ set rust_etc = %rustc_sysroot% \lib\rustlib\etc
17+
18+ windbg -c " .nvload %rust_etc% \libcore.natvis;.nvload %rust_etc% \libcollections.natvis;" %*
You can’t perform that action at this time.
0 commit comments