From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5078 invoked by alias); 5 Oct 2004 04:52:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5054 invoked from network); 5 Oct 2004 04:52:38 -0000 Received: from unknown (HELO mail04.idc.renesas.com) (202.234.163.13) by sourceware.org with SMTP; 5 Oct 2004 04:52:38 -0000 Received: (from root@localhost) by guardian05.idc.renesas.com with id i954qSa5019956; Tue, 5 Oct 2004 13:52:28 +0900 (JST) Received: from unknown [172.20.8.70] by guardian05.idc.renesas.com with SMTP id PAA19955 ; Tue, 5 Oct 2004 13:52:28 +0900 Received: from mrkaisv.hoku.renesas.com ([10.145.105.245]) by rnsmtp01.hoku_r.renesas.com (8.9.3/3.7W) with ESMTP id NAA17380; Tue, 5 Oct 2004 13:52:28 +0900 (JST) Received: from E5A02646 (unknown [10.145.105.81]) by mrkaisv.hoku.renesas.com (Postfix) with SMTP id 02B527981B7; Tue, 5 Oct 2004 13:52:28 +0900 (JST) Message-ID: <026101c4aa97$1d5a3050$5169910a@E5A02646> From: "Kei Sakamoto" To: "Michael Snyder" Cc: References: <01ba01c4a796$8037a580$5169910a@E5A02646> <415DCC83.1070806@redhat.com> Subject: Re: [RFA/testcase] Enable overlays.exp only for sim target Date: Tue, 05 Oct 2004 04:52:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_025E_01C4AAE2.8D18A570" X-SW-Source: 2004-10/txt/msg00075.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_025E_01C4AAE2.8D18A570 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-length: 776 > I guess I've never run this test on d10v hardware, but > I used to run it on m32r hardware. Why would it only > work on the sim? I'm sorry. I forgot about the remote debug environment. The overlay test should work on evaluation boards and emulators too. > Matter of fact, why shouldn't it work just about anywhere? > It doesn't have any hardware dependency, just a linker script. It seems that Linux kernel can't load overlaid programs into memory because VMA and LMA of overlaid sections are different. So overlays.exp is not available on the Linux. I revised the patch file. It disables overlays.exp if target is Linux. Is this OK? Kei Sakamoto 2004-10-05 Kei Sakamoto * gdb.base/overlays.exp: Disables if target is Linux. ------=_NextPart_000_025E_01C4AAE2.8D18A570 Content-Type: application/octet-stream; name="overlays.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="overlays.patch" Content-length: 809 Index: gdb.base/overlays.exp=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/gdb/testsuite/gdb.base/overlays.exp,v=0A= retrieving revision 1.5=0A= diff -u -r1.5 overlays.exp=0A= --- gdb.base/overlays.exp 20 Jan 2003 15:40:07 -0000 1.5=0A= +++ gdb.base/overlays.exp 5 Oct 2004 04:39:51 -0000=0A= @@ -39,6 +39,11 @@=0A= return=20=0A= }=0A= =20=0A= +if [istarget "*-*-linux*"] then {=0A= + verbose "Skipping overlay test -- Linux doesn't support overlayed prog= rams."=0A= + return=20=0A= +}=0A= +=0A= set testfile "overlays"=0A= set binfile ${objdir}/${subdir}/${testfile}=0A= set srcfile ${testfile}.c=0A= ------=_NextPart_000_025E_01C4AAE2.8D18A570--