forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#39983 - AndrewGaspar:rust-windbg, r=brson
Adds rust-windbg.cmd script Adds rust-gdb/rust-lldb equivalent for windbg that loads the Rust .natvis files on start. This change modifies the bootstrap code to add rust-windbg to bin and the .natvis files to lib/rustlib/etc. Example usage from cmd or PowerShell: ``` rust-windbg -c "bu rs_f442289d74765418!rs::main;g" target\debug\rs.exe ```
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
setlocal | ||
|
||
REM Copyright 2014 The Rust Project Developers. See the COPYRIGHT | ||
REM file at the top-level directory of this distribution and at | ||
REM http://rust-lang.org/COPYRIGHT. | ||
REM | ||
REM Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
REM http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
REM <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
REM option. This file may not be copied, modified, or distributed | ||
REM except according to those terms. | ||
|
||
for /f "delims=" %%i in ('rustc --print=sysroot') do set rustc_sysroot=%%i | ||
|
||
set rust_etc=%rustc_sysroot%\lib\rustlib\etc | ||
|
||
windbg -c ".nvload %rust_etc%\libcore.natvis;.nvload %rust_etc%\libcollections.natvis;" %* |