This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: gdb seems to be broken on darwin 10.5.8 and later


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 <http://gnu.org/licenses/gpl.html>
> 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:
> <http://www.gnu.org/software/gdb/bugs/>...
> 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 <http://gnu.org/licenses/gpl.html>
> 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:
> <http://www.gnu.org/software/gdb/bugs/>.
> (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 <gdb_do_one_event>,
> 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 <captured_command_loop>,
> 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 <captured_main>,
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]