]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: remove debug output messages from testsuite
authorAndrew Burgess <aburgess@redhat.com>
Wed, 10 Jun 2026 18:43:24 +0000 (19:43 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 10 Jun 2026 18:43:24 +0000 (19:43 +0100)
Over time I've managed to leave various debug logging messages in the
testsuite, all of which include the 'APB' tag that I use to make
searching for these easier.  None of these were required, they could
all be removed.

I have left the logging output in gdb.base/stap-probe.exp (but with
the 'APB' removed) as it looked slightly useful, and it's harmless to
keep it.  But all of the other logging lines I just removed.

There should be no change in what is tested after this commit.

gdb/testsuite/gdb.base/attach-deleted-exec.exp
gdb/testsuite/gdb.base/stap-probe.exp
gdb/testsuite/gdb.cp/virtfunc.exp
gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp
gdb/testsuite/gdb.fortran/lbound-ubound.exp
gdb/testsuite/lib/dwarf.exp

index 61ee8647c9c4660c1363baf366a3079a305b91ca..5d3f43eff00449b1ff3ee7b0035b8d8f25c888c0 100644 (file)
@@ -97,8 +97,6 @@ if { [target_info gdb_protocol] == "extended-remote" } {
     set filename_re "\[^\r\n\]+/${testfile} \\(deleted\\)"
 }
 
-verbose -log "APB: warning: No executable has been specified, and target executable $filename_re could not be found\\.  Try using the \"file\" command\\."
-
 gdb_test "attach $testpid" \
     [multi_line \
         "Attaching to process $decimal" \
index b157e2c13a7b22a9bec83723b90b51c5c9441184..00f91a5723a76fbf3cc27aefc34d6977dafdca8d 100644 (file)
@@ -90,16 +90,16 @@ proc check_for_usable_xmm0_probe { binfile } {
     # First, look for the xmmreg probe, and if we find it, grab the
     # argument string.
     if {![regexp {\n\s+Provider: test\n\s+Name: xmmreg\n[^\n]+\n\s+Arguments: ([^\n]+)\n} $output ignore arguments]} {
-       verbose -log "APB: Couldn't find probe at all"
+       verbose -log "Couldn't find probe at all"
        return false
     }
 
-    verbose -log "APB: Matched on '$ignore'"
-    verbose -log "APB: arguments: '$arguments'"
+    verbose -log "Matched on '$ignore'"
+    verbose -log "  arguments: '$arguments'"
 
     # Check the argument string mentions xmm0.
     if {![regexp {@%?xmm0} $arguments]} {
-       verbose -log "APB: Prove doesn't use xmm0 register"
+       verbose -log "Probe doesn't use xmm0 register"
        return false
     }
 
index eecf4611e2339bfb26a14c7c468b908ff9590a83..f6ff98d96f599240f8dbdeac96ac6b9f13d1f7f8 100644 (file)
@@ -242,8 +242,6 @@ proc make_one_vtable_result {name args} {
        set result [string range $result 0 end-[string length $nls]]
     }
 
-    verbose -log "APB: result: '$result'"
-
     return $result
 }
 
index c0b1265a8dc30c6c453e65a6727cf70239fb0321..1920ec3ee98c8b8cade0fed9e68374a1aaaaff72 100644 (file)
@@ -173,8 +173,6 @@ proc check_end_markers { expected_symtab test_spec } {
        upvar 1 $varname upvar_addr
        set addr [string range $upvar_addr 2 end]
 
-       verbose -log "APB: index: $index, addr: $addr"
-
        set symtab ""
        set saw_line false
        gdb_test_multiple "maint info line-table" \
index e0bcbbd62eab28dca3b78d4fdd6e7909a30fcd13..6d3c4b9877912c8a4f0934c9c66b96f0964babaa 100644 (file)
@@ -76,10 +76,6 @@ while { $test_count < 500 } {
            error "failed to extract expected results for ubound"
        }
 
-       verbose -log "APB: Run a test here"
-       verbose -log "APB: Expected lbound '$expected_lbound'"
-       verbose -log "APB: Expected ubound '$expected_ubound'"
-
        # We want to take a look at the line in the previous frame that
        # called the current function.  I couldn't find a better way of
        # doing this than 'up', which will print the line, then 'down'
index ca2278606d6caf2db7510d9962ac6dbc0f53222f..839c5174265024312e91ffbf780e19749965806a 100644 (file)
@@ -143,8 +143,6 @@ proc build_executable_and_dwo_files { testname executable options args } {
            return -1
        }
 
-       verbose -log "APB: SPEC: $spec"
-
        set s [lindex $spec 0]
        set local_options [lindex $spec 1]
 
@@ -182,8 +180,6 @@ proc build_executable_and_dwo_files { testname executable options args } {
        }
     }
 
-    verbose -log "APB: OBJECTS = $objects"
-
     set ret [$func $objects "${binfile}" executable $options]
     if  { $ret != "" } {
        untested $testname