From patchwork Fri Jul 15 14:33:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weigand X-Patchwork-Id: 2716 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6EC3F23F55 for ; Fri, 15 Jul 2011 14:33:11 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 36BC6A18416 for ; Fri, 15 Jul 2011 14:33:11 +0000 (UTC) Received: by qwb8 with SMTP id 8so888178qwb.11 for ; Fri, 15 Jul 2011 07:33:10 -0700 (PDT) Received: by 10.224.198.7 with SMTP id em7mr3267422qab.112.1310740390554; Fri, 15 Jul 2011 07:33:10 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs49803qcb; Fri, 15 Jul 2011 07:33:09 -0700 (PDT) Received: by 10.216.63.132 with SMTP id a4mr611730wed.18.1310740389162; Fri, 15 Jul 2011 07:33:09 -0700 (PDT) Received: from mtagate3.uk.ibm.com (mtagate3.uk.ibm.com [194.196.100.163]) by mx.google.com with ESMTPS id x11si554043wec.44.2011.07.15.07.33.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jul 2011 07:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of uweigand@de.ibm.com designates 194.196.100.163 as permitted sender) client-ip=194.196.100.163; Authentication-Results: mx.google.com; spf=pass (google.com: domain of uweigand@de.ibm.com designates 194.196.100.163 as permitted sender) smtp.mail=uweigand@de.ibm.com Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p6FEX7hr002015 for ; Fri, 15 Jul 2011 14:33:07 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6FEX79c2564120 for ; Fri, 15 Jul 2011 15:33:07 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6FEX7lU006120 for ; Fri, 15 Jul 2011 08:33:07 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p6FEX6Gv006048; Fri, 15 Jul 2011 08:33:06 -0600 Message-Id: <201107151433.p6FEX6Gv006048@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 15 Jul 2011 16:33:06 +0200 Subject: [commit] Enable gdb.base/type-opaque.exp for remote targets To: gdb-patches@sourceware.org, patches@linaro.org Date: Fri, 15 Jul 2011 16:33:06 +0200 (CEST) From: "Ulrich Weigand" X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Hello, gdb.base/type-opaque.exp was disabled on remote targets because "No support for downloading shared libraries to a target yet." This may have been true in the distant past, but these days shared libraries are supported on remote targets as well. The following patch re-enables the test everywhere. Tested on a remote arm-linux-gnueabi target from an x86-linux host. Committed to mainline. Bye, Ulrich ChangeLog: * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on remote targets as well. Index: gdb/testsuite/gdb.base/type-opaque.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/type-opaque.exp,v retrieving revision 1.7 diff -u -p -r1.7 type-opaque.exp --- gdb/testsuite/gdb.base/type-opaque.exp 1 Jan 2011 15:33:43 -0000 1.7 +++ gdb/testsuite/gdb.base/type-opaque.exp 7 Jul 2011 13:25:36 -0000 @@ -30,12 +30,6 @@ set execsrc "${srcdir}/${subdir}/${srcfi remote_exec build "rm -f ${binfile}" -# Are we on a target board? No support for downloading shared libraries -# to a target yet. -if ![isnative] then { - return 0 -} - # get the value of gcc_compiled if [get_compiler_info ${binfile}] { return -1 @@ -51,6 +45,7 @@ gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} +gdb_load_shlibs ${libobj} if ![runto_main] then { fail "Can't run to main"