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]

FYI: add logging to dw2-inline-param.exp


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} {


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