about summary refs log tree commit diff
path: root/src/doc/complement-bugreport.md
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2014-12-11 11:47:16 -0500
committerSteve Klabnik <steve@steveklabnik.com>2014-12-11 11:47:16 -0500
commitf473aee8930d47f73136e22232f1acef410b59e6 (patch)
tree600988fbbb66b08b91e9b51849bb84ca4eddc6b4 /src/doc/complement-bugreport.md
parentc38e73fef53e8520e5170c40713e32ab965a8abe (diff)
downloadrust-f473aee8930d47f73136e22232f1acef410b59e6.tar.gz
rust-f473aee8930d47f73136e22232f1acef410b59e6.zip
gdb < RUST_BACKTRACE
Fixes #19717
Diffstat (limited to 'src/doc/complement-bugreport.md')
-rw-r--r--src/doc/complement-bugreport.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/doc/complement-bugreport.md b/src/doc/complement-bugreport.md
index 918c087e66b..22d17a9d6fe 100644
--- a/src/doc/complement-bugreport.md
+++ b/src/doc/complement-bugreport.md
@@ -37,7 +37,7 @@ It's also helpful to provide the exact version and host by copying the output of
 re-running the erroneous rustc command with the `--version=verbose` flag, which will
 produce something like this:
 
-```{ignore}
+```text
 rustc 0.12.0 (ba4081a5a 2014-10-07 13:44:41 -0700)
 binary: rustc
 commit-hash: ba4081a5a8573875fed17545846f6f6902c8ba8d
@@ -46,8 +46,13 @@ host: i686-apple-darwin
 release: 0.12.0
 ```
 
-Finally, if you can run the offending command under gdb, pasting a stack trace can be
-useful; to do so, you will need to set a breakpoint on `rust_panic`.
+Finally, if you can also provide a backtrace, that'd be great. You can get a
+backtrace by setting the `RUST_BACKTRACE` environment variable to `1`, like
+this: 
+
+```bash
+$ RUST_BACKTRACE=1 rustc ...
+```
 
 # I submitted a bug, but nobody has commented on it!