From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20984 invoked by alias); 8 May 2011 08:52:57 -0000 Received: (qmail 20975 invoked by uid 22791); 8 May 2011 08:52:56 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 May 2011 08:52:42 +0000 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id p486FU0c020876 for ; Sat, 7 May 2011 23:15:30 -0700 Received: from gxk1 (gxk1.prod.google.com [10.202.11.1]) by hpaq12.eem.corp.google.com with ESMTP id p486FSlN000480 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 7 May 2011 23:15:29 -0700 Received: by gxk1 with SMTP id 1so1598133gxk.10 for ; Sat, 07 May 2011 23:15:28 -0700 (PDT) Received: by 10.150.60.12 with SMTP id i12mr1930390yba.88.1304835328113; Sat, 07 May 2011 23:15:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.11.17 with HTTP; Sat, 7 May 2011 23:14:58 -0700 (PDT) In-Reply-To: <31098392.post@talk.nabble.com> References: <31098392.post@talk.nabble.com> From: Paul Pluzhnikov Date: Sun, 08 May 2011 08:52:00 -0000 Message-ID: Subject: =?windows-1252?Q?Re=3A_gdb_can_not_debug_=93hello_world=94_in_mac_os_x?= To: hefeweizen Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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-05/txt/msg00031.txt.bz2 On Tue, Mar 8, 2011 at 7:54 AM, hefeweizen wrote: > (gdb) b main > Breakpoint 1 at 0x1f8f: file hello.cpp, line 5. > > run the program: > > (gdb) r > Starting program: > /Users/horacio/work/software/gdb/gdb-7.2-inst/bin/hello.exe > > Breakpoint 1, main () at hello.cpp:5 > 5 =A0 =A0 =A0 puts("!!!Hello World!!!"); > > and try to step, and this happens: > > (gdb) n > 0x00003045 in ?? () FWIW, I did not reproduce this with current CVS build of GDB: gdb/gdb ./a.out GNU gdb (GDB) 7.3.50.20110508-cvs Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-apple-darwin10.7.0". For bug reporting instructions, please see: ... Reading symbols from /Users/ppluzhnikov/gdb-cvs/build/a.out...Reading symbols from /Users/ppluzhnikov/gdb-cvs/build/a.out.dSYM/Contents/Resources= /DWARF/a.out...done. done. (gdb) b main Breakpoint 1 at 0x100000ef8: file t.cc, line 5. (gdb) r Starting program: /Users/ppluzhnikov/gdb-cvs/build/a.out Breakpoint 1, main () at t.cc:5 5 puts("!!!Hello World!!!"); (gdb) n !!!Hello World!!! 6 return EXIT_SUCCESS; (gdb) n 7 } (gdb) n 0x0000000100000eec in start () (gdb) c Continuing. [Inferior 1 (process 41135) exited normally] (gdb) q --=20 Paul Pluzhnikov