Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Peter Watkins <peter_watkins@mentor.com>
To: gdb@sourceware.org
Subject: Re: gdb can not debug “hello world” in mac os x
Date: Tue, 08 Mar 2011 16:29:00 -0000	[thread overview]
Message-ID: <4D765964.2090804@mentor.com> (raw)
In-Reply-To: <1299599657.19674.ezmlm@sourceware.org>

Hi Horacio,


On 03/08/2011 07:54 AM, horacio.sanchez@kit.edu wrote:
>
> Hi, I have the following smal C++ program
>
> #include<stdio.h>
> #include<stdlib.h>
>
> 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


       reply	other threads:[~2011-03-08 16:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1299599657.19674.ezmlm@sourceware.org>
2011-03-08 16:29 ` Peter Watkins [this message]
2011-03-08 16:46   ` hefeweizen
2011-03-08 15:54 hefeweizen
2011-03-08 16:02 ` Tristan Gingold
2011-03-08 16:12   ` hefeweizen
2011-03-08 16:23     ` André Pönitz
2011-05-08  8:52 ` Paul Pluzhnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D765964.2090804@mentor.com \
    --to=peter_watkins@mentor.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox