FYI: add logging to dw2-inline-param.exp
Tom Tromey
tromey@redhat.com
Wed Dec 14 20:30:00 GMT 2011
I'm checking this in on the trunk.
While looking at regressions for a patch series I'm working on, I wanted
a bit more logging in dw2-inline-param.exp, so I could see exactly what
was going on.
This patch adds the logging.
Tom
2011-12-14 Tom Tromey <tromey@redhat.com>
* gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.
Index: gdb.dwarf2/dw2-inline-param.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp,v
retrieving revision 1.5
diff -u -r1.5 dw2-inline-param.exp
--- gdb.dwarf2/dw2-inline-param.exp 13 Dec 2011 17:22:08 -0000 1.5
+++ gdb.dwarf2/dw2-inline-param.exp 14 Dec 2011 19:57:52 -0000
@@ -41,7 +41,9 @@
# Strip out any labels there as they could corrupt the `main' name.
set objcopy_program [transform objcopy]
-set result [catch "exec $objcopy_program -N block_start -N block_end -N break_at ${binfile}" output]
+set command "$objcopy_program -N block_start -N block_end -N break_at ${binfile}"
+verbose -log "Executing: $command"
+set result [catch "exec $command" output]
verbose "result is $result"
verbose "output is $output"
if {$result != 0} {
More information about the Gdb-patches
mailing list