This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: optimized-out pieces


Hi Tom,

a fixup is needed there.

 print operand0
-$1 = <value optimized out>
-(gdb) PASS: gdb.opt/clobbered-registers-O2.exp: print operand0
+$1 = (unsigned int *) <value optimized out>
+(gdb) FAIL: gdb.opt/clobbered-registers-O2.exp: print operand0
 print operand1
-$2 = <value optimized out>
-(gdb) PASS: gdb.opt/clobbered-registers-O2.exp: print operand1
+$2 = (unsigned int *) <value optimized out>
+(gdb) FAIL: gdb.opt/clobbered-registers-O2.exp: print operand1


Thanks,
Jan


2010-06-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.opt/clobbered-registers-O2.exp (print operand0, print operand1):
	Expect also the type.

--- a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
+++ b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
@@ -53,12 +53,12 @@ if { ![runto start_sequence] } then {
 gdb_test "frame 1" "#1.*in gen_movsd.*" "Backtracing"
 
 gdb_test_multiple "print operand0" "print operand0" {
-    -re "\\\$$decimal = <value optimized out>\r\n$gdb_prompt $" { pass "print operand0"}
+    -re "\\\$$decimal = \\(unsigned int \\*\\) <value optimized out>\r\n$gdb_prompt $" { pass "print operand0"}
     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand0" "13" "print operand0" }
 }
 
 gdb_test_multiple "print operand1" "print operand1" {
-    -re "\\\$$decimal = <value optimized out>\r\n$gdb_prompt $" { pass "print operand1"}
+    -re "\\\$$decimal = \\(unsigned int \\*\\) <value optimized out>\r\n$gdb_prompt $" { pass "print operand1"}
     -re "$hex\r\n$gdb_prompt $" { gdb_test "print *operand1" "14" "print operand1" }
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]