about summary refs log tree commit diff
path: root/src/test/debuginfo/function-arg-initialization.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2014-10-29 10:13:29 +0400
committerMichael Woerister <michaelwoerister@posteo>2014-10-31 18:49:59 +0100
commit54a5a2b36591d6aad7e94cf6740988202f1654aa (patch)
tree65e2704b46b196ec5dc1994a3f9a4934531203a9 /src/test/debuginfo/function-arg-initialization.rs
parent7e662316d1c2618c87eb0328aa6b2bccd7eaa8d4 (diff)
downloadrust-54a5a2b36591d6aad7e94cf6740988202f1654aa.tar.gz
rust-54a5a2b36591d6aad7e94cf6740988202f1654aa.zip
debuginfo: Make GDB tests use line breakpoints like done in LLDB tests.
On some Windows versions of GDB this is more stable than setting breakpoints via function names.
Diffstat (limited to 'src/test/debuginfo/function-arg-initialization.rs')
-rw-r--r--src/test/debuginfo/function-arg-initialization.rs19
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) {