From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28327 invoked by alias); 23 Mar 2005 13:20:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27862 invoked from network); 23 Mar 2005 13:19:50 -0000 Received: from unknown (HELO sohm.kpit.com) (203.129.230.85) by sourceware.org with SMTP; 23 Mar 2005 13:19:50 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: gdb-6.3 simulator problem when built on cygwin Date: Wed, 23 Mar 2005 13:20:00 -0000 Message-ID: <4A1BE23A7B777442B60F4B4916AE0F1304D557B5@sohm.kpit.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Nitin Shah" To: X-SW-Source: 2005-03/txt/msg00209.txt.bz2 Hi, I have used following source code snapshots to build SH(ELF) toolchain, 1) binutils-050128 2) gcc-4.0-20050116 3) newlib-1.13.0 I have built GDB for SH-ELF target using gdb-6.3 source for Windows (using cygwin-1.5.9-1) and for Linux. I have a trivial test program using "printf" to print integer with format specifier "%d". This test program is then compiled for SH4 using cygwin based windows tool chain. When I try to run output file using GDB simulator on windows, I get the following error -- "sh-elf-run: can't load a.out: File format not recognized" Same output file runs on Linux correctly. The "printf" works perfectly without using any format specifiers in windows as well as Linux. The test program & command lines for compilation & running are as - ************************** test.c **************************=20 int main() { int j=3D10;=20 printf("\nValue of j is %d\n",j); return 0;=20 } command line to compile the program - >sh-elf-gcc -m4 test.c command line to run the output file - >sh-elf-run a.out ************************************************************* The output file of the program compiled for following targets gives problem - SH4, SH4A, SH4A-NOFPU, SH4A-SINGLE, SH4A-SINGLE-ONLY. Kindly suggest the solution for this problem.=20 Is there any problem in building the GDB on Cygwin ? I have used same build process for Linux and Cygwin. Thanks in advance. Regards, Nitin Shah. KPIT Cummins InfoSystems Ltd. Pune, India ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Free download of GNU based tool-chains for Renesas' SH and H8 Series. The following site also offers free technical support to its users.=20 Visit http://www.kpitgnutools.com for details.=20 Latest versions of KPIT GNU tools are released on February 4, 2005. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=20