diff options
| author | bors <bors@rust-lang.org> | 2014-11-01 03:56:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-01 03:56:44 +0000 |
| commit | 51a25c7f96ad0d00836314d705e3f0a477562a2c (patch) | |
| tree | 66a9bac1c831d318681eba6a0e139cc859d36377 /src/test/debuginfo/function-arg-initialization.rs | |
| parent | 1442235d3feab4c5ca3f55e2b3345583f640a17e (diff) | |
| parent | e06c3382739a01725b10b893df613413f2923e8a (diff) | |
| download | rust-51a25c7f96ad0d00836314d705e3f0a477562a2c.tar.gz rust-51a25c7f96ad0d00836314d705e3f0a477562a2c.zip | |
auto merge of #18422 : michaelwoerister/rust/windows-freeze-fix, r=alexcrichton
On some Windows versions of GDB this is more stable than setting breakpoints via function names. This is also something I wanted to do for some time now because it makes the tests more consistent. @brson: These changes are in response to issue #17540. It works on my machine with the toolchain mentioned in the issue. In order to find out if the problem is really worked around, we also need to make the build bots use the newer GDB version again.
Diffstat (limited to 'src/test/debuginfo/function-arg-initialization.rs')
| -rw-r--r-- | src/test/debuginfo/function-arg-initialization.rs | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/test/debuginfo/function-arg-initialization.rs b/src/test/debuginfo/function-arg-initialization.rs index ea9802afe94..53b3044b0f7 100644 --- a/src/test/debuginfo/function-arg-initialization.rs +++ b/src/test/debuginfo/function-arg-initialization.rs @@ -15,21 +15,8 @@ // first line of the function, that is if the function prologue has already been executed at the // first line. Note that because of the __morestack part of the prologue GDB incorrectly breaks at // before the arguments have been properly loaded when setting the breakpoint via the function name. -// Therefore the setup here sets them using line numbers (so be careful when changing this file). // compile-flags:-g -// gdb-command:set print pretty off -// gdb-command:break function-arg-initialization.rs:244 -// gdb-command:break function-arg-initialization.rs:259 -// gdb-command:break function-arg-initialization.rs:263 -// gdb-command:break function-arg-initialization.rs:267 -// gdb-command:break function-arg-initialization.rs:271 -// gdb-command:break function-arg-initialization.rs:275 -// gdb-command:break function-arg-initialization.rs:279 -// gdb-command:break function-arg-initialization.rs:283 -// gdb-command:break function-arg-initialization.rs:287 -// gdb-command:break function-arg-initialization.rs:295 -// gdb-command:break function-arg-initialization.rs:302 // === GDB TESTS =================================================================================== @@ -241,7 +228,7 @@ fn immediate_args(a: int, b: bool, c: f64) { - () // #break + ::std::io::print("") // #break } struct BigStruct { @@ -256,15 +243,17 @@ struct BigStruct { } fn non_immediate_args(a: BigStruct, b: BigStruct) { - () // #break + ::std::io::print("") // #break } fn binding(a: i64, b: u64, c: f64) { let x = 0i; // #break + ::std::io::print("") } fn assignment(mut a: u64, b: u64, c: f64) { a = b; // #break + ::std::io::print("") } fn function_call(x: u64, y: u64, z: f64) { |
