From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8861 invoked by alias); 8 Jun 2009 13:47:05 -0000 Received: (qmail 8848 invoked by uid 22791); 8 Jun 2009 13:47:04 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f205.google.com (HELO mail-ew0-f205.google.com) (209.85.219.205) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Jun 2009 13:46:55 +0000 Received: by ewy1 with SMTP id 1so5154938ewy.8 for ; Mon, 08 Jun 2009 06:46:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.210.44.12 with SMTP id r12mr958966ebr.92.1244468812051; Mon, 08 Jun 2009 06:46:52 -0700 (PDT) In-Reply-To: <4A2D05B5.4040304@trego.co.il> References: <4A2D05B5.4040304@trego.co.il> Date: Mon, 08 Jun 2009 13:47:00 -0000 Message-ID: Subject: Re: not able to debug threads - gcc configuration problem? From: arkkimede To: lidar Cc: gdb@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00072.txt.bz2 For your information, I can't debug in cygwin a mixed code with c and assembly using like assembler nasm. In linux (debian) yes. Someone advice me to update cygwin I download last release of cygwin but i doesn't work. I'm non able to see the assembler code into the debugger BR On Mon, Jun 8, 2009 at 2:36 PM, lidar wrote: > Hello, > > I have been attempting to compile a cross-toolchain, to use over Cygwin, = for > a PowerPC target. > > So far i have been able to compile and run a multi-threaded program on > board. > > The trouble is, i haven't been able to debug threads with GDB: > > 1. when i dont set breakpoints in the thread - the gdb breaks on > _pthread_sigsuspend upon the pthread_create call, and the program continu= es > to completion > when i say "c". > > 2. when i set a breakpoint in the thread, upon pthread_create the program > exits (with exit value 0), and the gdb reports "program exited normally". > > > Luckily, i do have a fine installation of montavista, so i did a little > test: i compiled the same basic program on the montavista, ran it on the > board > and attempted debugging it with my cygwin gdb. THIS ONE WORKED! =A0my gdb > reported threads and agreed to break upon thread breakpoints. > > does this mean my gdb is fine? > > i also took my Cygwin-compiled program, ran it on the board and tried > debugging it from the montavista gdb - this one failed in pretty much the > same way > i described above. > > > i suspect either my toolchain configuration is bad, or my Cygwin > installation is missing something. > > the toolchain configuration i used is: > > TARGET=3Dpowerpc-603e-linux-gnu > TARGET_CFLAGS=3D"-O -mcpu=3D603e" > GCC_EXTRA_CONFIG=3D"--with-cpu=3D603e --enable-cxx-flags=3D-mcpu=3D603e" > > BINUTILS_DIR=3Dbinutils-2.16.1 > GCC_CORE_DIR=3Dgcc-3.3.6 > GCC_DIR=3Dgcc-4.1.0 > GLIBC_DIR=3Dglibc-2.3.6 > LINUX_DIR=3Dlinux-2.6.15.4 > LINUX_SANITIZED_HEADER_DIR=3Dlinux-libc-headers-2.6.12.0 > GLIBCTHREADS_FILENAME=3Dglibc-linuxthreads-2.3.6 > GDB_DIR=3Dgdb-6.5 > > > any ideas or help would be much appreciated. > > Lidar > >