From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18967 invoked by alias); 2 Oct 2009 01:55:39 -0000 Received: (qmail 18957 invoked by uid 22791); 2 Oct 2009 01:55:38 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 02 Oct 2009 01:55:32 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id F11F4B005D; Thu, 1 Oct 2009 21:55:30 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id n921tUlP029928; Thu, 1 Oct 2009 21:55:30 -0400 Date: Fri, 02 Oct 2009 01:55:00 -0000 From: Jack Howarth To: Paul Pluzhnikov Cc: Anirban Sinha , gdb@sourceware.org, Michael Snyder , Joel Brobecker Subject: Re: FW: gdb seems to be broken on darwin 10.5.8 and later Message-ID: <20091002015530.GB29817@bromo.med.uc.edu> References: <8ac60eac0909302034s3f67ed8fxc84fa5544740dd21@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ac60eac0909302034s3f67ed8fxc84fa5544740dd21@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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-10/txt/msg00032.txt.bz2 On Wed, Sep 30, 2009 at 08:34:21PM -0700, Paul Pluzhnikov wrote: > FWIW, I have just built GDB from CVS Head on > > System Version: Mac OS X 10.5.8 (9L31a) > 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; > root:xnu-1228.15.4~1/RELEASE_I386 i386 > > and GDB appears to work just fine (when executed as root), > except for minor annoyances: > > # ../gdb ../gdb > GNU gdb (GDB) 7.0.50.20091001-cvs > Copyright (C) 2009 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 "--host=i386-apple-darwin9.7.0 > --target=i386-apple-darwin9.8.0". > For bug reporting instructions, please see: > ... > Reading symbols from /Users/ppluzhnikov/gdb-cvs/build/gdb/gdb... > warning: section __DATA.__common not found in main.o > > warning: section __DATA.__common not found in utils.o > > warning: section __DATA.__common not found in exec.o > > ... many more of these ... > warning: section __DATA.__common not found in plural-exp.o > (no debugging symbols found)...done. > (gdb) run > `main.o' has disappeared; keeping its symbols. > `make-relative-prefix.o' has disappeared; keeping its symbols. > `utils.o' has disappeared; keeping its symbols. > ... many more .... > `stab-syms.o' has disappeared; keeping its symbols. > `hex.o' has disappeared; keeping its symbols. > Starting program: /Users/ppluzhnikov/gdb-cvs/build/gdb/gdb > GNU gdb (GDB) 7.0.50.20091001-cvs > Copyright (C) 2009 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 "--host=i386-apple-darwin9.7.0 > --target=i386-apple-darwin9.8.0". > For bug reporting instructions, please see: > . > (gdb) > Program received signal SIGINT, Interrupt. > 0x91cdc6fa in select$DARWIN_EXTSN () from /usr/lib/libSystem.B.dylib > (gdb) bt > #0 0x91cdc6fa in select$DARWIN_EXTSN () from /usr/lib/libSystem.B.dylib > #1 0x0006765a in gdb_select (n=1, readfds=0x354ecc, > writefds=0x354f4c, exceptfds=0x354fcc, timeout=0x0) at > ../../src/gdb/posix-hdep.c:52 > #2 0x00101d98 in gdb_wait_for_event (block=1) at ../../src/gdb/event-loop.c:877 > #3 0x001011ac in gdb_do_one_event (data=0x0) at ../../src/gdb/event-loop.c:455 > #4 0x000f99b3 in catch_errors (func=0x1010e3 , > func_args=0x0, errstring=0x29f7d0 "", mask=6) at > ../../src/gdb/exceptions.c:510 > #5 0x000542bf in tui_command_loop (data=0x0) at > ../../src/gdb/tui/tui-interp.c:153 > #6 0x000fa3b8 in current_interp_command_loop () at ../../src/gdb/interps.c:291 > #7 0x000fad93 in captured_command_loop (data=0x0) at ../../src/gdb/main.c:226 > #8 0x000f99b3 in catch_errors (func=0xfad81 , > func_args=0x0, errstring=0x29f7d0 "", mask=6) at > ../../src/gdb/exceptions.c:510 > #9 0x000fc271 in captured_main (data=0xbffffcb0) at ../../src/gdb/main.c:902 > #10 0x000f99b3 in catch_errors (func=0xfadd6 , > func_args=0xbffffcb0, errstring=0x29f7d0 "", mask=6) at > ../../src/gdb/exceptions.c:510 > #11 0x000fc318 in gdb_main (args=0xbffffcb0) at ../../src/gdb/main.c:911 > #12 0x00001cc4 in main (argc=1, argv=0xbffffce8) at ../../src/gdb/gdb.c:33 > (gdb) quit > > > -- > Paul Pluzhnikov Paul, Actually current gdb cvs with the macho changes is now behaving fine as long as I run as root. Is there any chance that we can get the macho changes into gdb cvs since the remaining issues with permissions seem to be completely orthogonal to those changes. Jack