Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp ('k') | gdb/testsuite/gdb.dwarf2/dw2-intercu.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
index 0db3f0f54047c03aeb1a485edfda2c5f54ba04a7..30cfdc2692fa38af3ed88f5b88024c8b5bef7bcd 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
@@ -19,14 +19,13 @@ if {![dwarf2_support]} {
return 0
}
-set testfile dw2-inline-param
-set binfile ${objdir}/${subdir}/${testfile}
-if { [build_executable ${testfile}.exp "${testfile}" [list ${testfile}-main.c ${testfile}.S] {nodebug}] } {
+standard_testfile .S dw2-inline-param-main.c
+
+if { [prepare_for_testing ${testfile}.exp "${testfile}" \
+ [list $srcfile2 $srcfile] {nodebug}] } {
return -1
}
-clean_restart ${testfile}
-
set break_at ""
set test "info addr break_at"
gdb_test_multiple $test $test {
@@ -41,7 +40,9 @@ gdb_unload
# 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} {
@@ -49,9 +50,6 @@ if {$result != 0} {
}
gdb_load ${binfile}
-if [target_info exists gdb_stub] {
- gdb_step_for_stub;
-}
if ![runto "*${break_at}"] {
return -1
« no previous file with comments | « gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp ('k') | gdb/testsuite/gdb.dwarf2/dw2-intercu.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698