* gdb.mi/mi-var-create-rtti.exp: Create a variable of
authorLuis Machado <luisgpm@br.ibm.com>
Thu, 18 Apr 2013 10:08:08 +0000 (10:08 +0000)
committerLuis Machado <luisgpm@br.ibm.com>
Thu, 18 Apr 2013 10:08:08 +0000 (10:08 +0000)
type void *.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-var-create-rtti.exp

index 584546472a74db16cb6c836c8e8a96b3dfcc7e14..4d69f41cf29796ac2f0761aca2f79628590f65e1 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-18  Luis Machado  <lgustavo@codesourcery.com>
+
+       * gdb.mi/mi-var-create-rtti.exp: Create a variable of
+       type void *.
+
 2013-04-17  Doug Evans  <dje@google.com>
 
        * lib/dwarf.exp (Dwarf): New proc "tu".
index da3cf1b39efc534210a76126d97459a98fa5f333..f991951254a9cec81ab958118b36f7a1e5beb2d4 100644 (file)
@@ -45,8 +45,10 @@ if ![mi_run_to_main] {
 # Enable "print object"
 mi_gdb_test "-gdb-set print object on" ".*"
 
-# Test creating a variable for $sp
-mi_gdb_test "-var-create sp1 * \$sp" \
+# Test creating a variable for $sp.
+# We use a explicit cast to (void *) as that is the
+# type that caused the bug this testcase is testing for.
+mi_gdb_test "-var-create sp1 * ((void*)\$sp)" \
            "\\^done,name=\"sp1\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",has_more=\"0\"" \
            "-var-create sp1 * \$sp"
 gdb_exit
This page took 0.03745 seconds and 4 git commands to generate.