From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30361 invoked by alias); 8 Mar 2011 16:46:03 -0000 Received: (qmail 30333 invoked by uid 22791); 8 Mar 2011 16:45:59 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8,TW_GX,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Mar 2011 16:45:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Px02i-0007Px-Jl for gdb@sourceware.org; Tue, 08 Mar 2011 08:45:52 -0800 Message-ID: <31098906.post@talk.nabble.com> Date: Tue, 08 Mar 2011 16:46:00 -0000 From: hefeweizen To: gdb@sourceware.org Subject: =?UTF-8?Q?Re:_gdb_can_not_debug_=E2=80=9Chello_world=E2=80=9D_in_mac_os_x?= In-Reply-To: <4D765964.2090804@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <31098392.post@talk.nabble.com> <4D765964.2090804@mentor.com> 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: 2011-03/txt/msg00056.txt.bz2 Apple Leopard's gdb does not produce this error. But I want to use Eclipse CDT, and it can not work with Apple's gdb, that is why I am trying to use a non-Apple gdb version. Peter Watkins-6 wrote: > > Hi Horacio, > > > On 03/08/2011 07:54 AM, horacio.sanchez@kit.edu wrote: >> >> Hi, I have the following smal C++ program >> >> #include >> #include >> >> int main(void) { >> puts("!!!Hello World!!!"); >> return EXIT_SUCCESS; >> } >> >> I compile in Mac OS X Leopard last release using: >> >> g++ -g hello.cpp -o hello.exe >> >> being g++: >> >> host:bin macbook$ g++ --ver >> Using built-in specs. >> Target: i686-apple-darwin9 >> Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking >> -enable-werror --prefix=/usr --mandir=/share/man >> --enable-languages=c,objc,c++,obj-c++ >> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ >> --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib >> --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic >> --host=i686-apple-darwin9 --target=i686-apple-darwin9 >> Thread model: posix >> gcc version 4.0.1 (Apple Inc. build 5493) > Did you get your GCC version from the Apple Developer Tools? > > >> then I try to debug this program using fsf-gdb 7.1: >> >> fsf-gdb hello.exe > What happens when you use Apple's version of GDB that comes with the > Developer Tools? > > -Peter > > -- View this message in context: http://old.nabble.com/gdb-can-not-debug-%E2%80%9Chello-world%E2%80%9D-in-mac-os-x-tp31098392p31098906.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.