public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-sergiodj-stap: compile program with debugging enabled uncomment $_probe_argc tests
@ 2011-03-02 20:03 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-03-02 20:03 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergiodj-stap has been updated
       via  a62f1cbf34669576a356a7559cc33a4479483255 (commit)
      from  18d8eb5f1c053ec00eef50f80beed020f96c9aae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit a62f1cbf34669576a356a7559cc33a4479483255
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Mar 2 13:06:29 2011 -0700

    compile program with debugging enabled
    uncomment $_probe_argc tests

-----------------------------------------------------------------------

Summary of changes:
 gdb/testsuite/gdb.base/stap-probe.exp |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

First 500 lines of diff:
diff --git a/gdb/testsuite/gdb.base/stap-probe.exp b/gdb/testsuite/gdb.base/stap-probe.exp
index 129acd7..4ea095f 100644
--- a/gdb/testsuite/gdb.base/stap-probe.exp
+++ b/gdb/testsuite/gdb.base/stap-probe.exp
@@ -28,7 +28,8 @@ proc stap_test {{arg ""}} {
 	set addendum ", no semaphore"
     }
 
-    if {[prepare_for_testing ${testfile}.exp ${testfile} ${testfile}.c $arg]} {
+    if {[prepare_for_testing ${testfile}.exp ${testfile} ${testfile}.c \
+	   [concat $arg debug]]} {
 	return -1
     }
 
@@ -49,12 +50,12 @@ proc stap_test {{arg ""}} {
 	fail "run to probe:teste:user$addendum"
     }
 
-    # Pending the implementation of this feature.
-    # gdb_test "print \$_probe_argc" " = 1" "print \$_probe_argc$addendum"
+    # Test probe arguments.
+    gdb_test "print \$_probe_argc" " = 1" "print \$_probe_argc$addendum"
     # gdb_test "print \$_probe_arg0 == x" " = 1" "check \$_probe_arg0$addendum"
-    # gdb_test "print \$_probe_arg1" \
-    # 	"Invalid probe argument 1 -- probe has 1 argument available" \
-    # 	"check \$_probe_arg1$addendum"
+    gdb_test "print \$_probe_arg1" \
+    	"Invalid probe argument 1 -- probe has 1 arguments available" \
+    	"check \$_probe_arg1$addendum"
 
     # Set a breakpoint with multiple probe locations.
     gdb_test "break probe:teste:two" \


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-02 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-02 20:03 [SCM] archer-sergiodj-stap: compile program with debugging enabled uncomment $_probe_argc tests tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).