From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20539 invoked by alias); 2 Jan 2011 17:21:43 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 20509 invoked by uid 9674); 2 Jan 2011 17:21:42 -0000 Date: Sun, 02 Jan 2011 17:21:00 -0000 Message-ID: <20110102172142.20493.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-jankratochvil-ifunc: Merge branch 'relatedbpt-type-findpcpart-all-test' into archer-jankratochvil-ifunc X-Git-Refname: refs/heads/archer-jankratochvil-ifunc X-Git-Reftype: branch X-Git-Oldrev: 94fbee6c99fcbd9231bb8847bdb09c874e559430 X-Git-Newrev: dc71de563bc1d242a93bf788c069dd3e1daf2837 X-SW-Source: 2011-q1/txt/msg00000.txt.bz2 List-Id: The branch, archer-jankratochvil-ifunc has been updated via dc71de563bc1d242a93bf788c069dd3e1daf2837 (commit) via 86dd523433b348f0740848dec5842e63037ae6b3 (commit) from 94fbee6c99fcbd9231bb8847bdb09c874e559430 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit dc71de563bc1d242a93bf788c069dd3e1daf2837 Merge: 94fbee6 86dd523 Author: Jan Kratochvil Date: Sun Jan 2 18:21:33 2011 +0100 Merge branch 'relatedbpt-type-findpcpart-all-test' into archer-jankratochvil-ifunc commit 86dd523433b348f0740848dec5842e63037ae6b3 Author: Jan Kratochvil Date: Sun Jan 2 18:21:13 2011 +0100 Testcase for: https://bugzilla.redhat.com/show_bug.cgi?id=624967 ----------------------------------------------------------------------- Summary of changes: gdb/testsuite/gdb.base/gnu-ifunc.exp | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) First 500 lines of diff: diff --git a/gdb/testsuite/gdb.base/gnu-ifunc.exp b/gdb/testsuite/gdb.base/gnu-ifunc.exp index 8ecf558..a14d8d0 100644 --- a/gdb/testsuite/gdb.base/gnu-ifunc.exp +++ b/gdb/testsuite/gdb.base/gnu-ifunc.exp @@ -18,12 +18,17 @@ if {[skip_shlib_tests]} { } set testfile "gnu-ifunc" +set executable ${testfile} set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} +set binfile ${objdir}/${subdir}/${executable} +set staticexecutable ${executable}-static +set staticbinfile ${objdir}/${subdir}/${staticexecutable} set libfile "${testfile}-lib" set libsrc ${libfile}.c set lib_so ${objdir}/${subdir}/${libfile}.so +# $lib_o must not have {debug}, it would override the gnu-ifunc ELF markers. +set lib_o ${objdir}/${subdir}/${libfile}.o # We need DWARF for the "final" function as we "step" into the function and GDB # would step-over the "final" function if there would be no line number debug @@ -47,14 +52,16 @@ if [get_compiler_info ${binfile}] { } if { [gdb_compile_shlib ${srcdir}/${subdir}/$libsrc $lib_so $lib_opts] != "" - || [gdb_compile ${srcdir}/${subdir}/$srcfile $binfile executable $exec_opts] != ""} { + || [gdb_compile ${srcdir}/${subdir}/$srcfile $binfile executable $exec_opts] != "" + || [gdb_compile ${srcdir}/${subdir}/$libsrc $lib_o object {}] != "" + || [gdb_compile "${srcdir}/${subdir}/$srcfile $lib_o" $staticbinfile executable {debug}] != ""} { untested "Could not compile either $libsrc or $srcfile." return -1 } # Start with a fresh gdb. -clean_restart $testfile +clean_restart $executable gdb_load_shlibs ${lib_so} if ![runto_main] then { @@ -108,3 +115,16 @@ gdb_test_multiple $test $test { } } gdb_test "info sym $expect_out(1,string)" "gnu_ifunc in section .*" "info sym " + + +# Test statically linked ifunc resolving during inferior start. +# https://bugzilla.redhat.com/show_bug.cgi?id=624967 + +if ![target_info exists gdb_stub] { + clean_restart $staticexecutable + + gdb_breakpoint "gnu_ifunc" + gdb_breakpoint "main" + gdb_run_cmd + gdb_test "" "Breakpoint \[0-9\]*, main .*" +} hooks/post-receive -- Repository for Project Archer.