public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12192] New: attaching gdb to running mach-o process does not load shared libraries and debug symbols
@ 2010-11-07 11:07 gdb at tmm1 dot net
  2012-08-08  9:28 ` [Bug gdb/12192] " tomi.kyostila at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: gdb at tmm1 dot net @ 2010-11-07 11:07 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12192

           Summary: attaching gdb to running mach-o process does not load
                    shared libraries and debug symbols
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: gdb@tmm1.net


$ ../gdb/gdb -v
GNU gdb (GDB) 7.2.50.20101104-cvs
This GDB was configured as "x86_64-apple-darwin10".

$ uname -a
Darwin aman-guptas-imac.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23
18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

Build a simple test case:

$ echo "int main() { while(42) sleep(1); }" > main.c
$ gcc -o main main.c
$ ./main &
[1] 67119
$ export PID=$!

Attach to running process (no debug info):

$ ../gdb/gdb -ex "attach $PID" -ex "where" -ex "detach" -ex "quit"

#0  0x00007fff85d18eb6 in ?? ()
#1  0x00007fff85d18d45 in ?? ()
#2  0x2c3e4603000c5877 in ?? ()
#3  0x00ffffffffffffff in ?? ()

Run the process inside gdb instead (works):

$ ../gdb/gdb ./main -ex 'run' -ex 'where' -ex 'quit'

#0  0x00007fff85d18eb6 in __semwait_signal () from /usr/lib/libSystem.B.dylib
#1  0x00007fff85d18d45 in nanosleep () from /usr/lib/libSystem.B.dylib
#2  0x00007fff85d65b14 in sleep () from /usr/lib/libSystem.B.dylib
#3  0x0000000100000f2b in main ()

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/12192] attaching gdb to running mach-o process does not load shared libraries and debug symbols
  2010-11-07 11:07 [Bug gdb/12192] New: attaching gdb to running mach-o process does not load shared libraries and debug symbols gdb at tmm1 dot net
@ 2012-08-08  9:28 ` tomi.kyostila at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: tomi.kyostila at gmail dot com @ 2012-08-08  9:28 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12192

Tomi Kyöstilä <tomi.kyostila at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomi.kyostila at gmail dot
                   |                            |com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-08  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-07 11:07 [Bug gdb/12192] New: attaching gdb to running mach-o process does not load shared libraries and debug symbols gdb at tmm1 dot net
2012-08-08  9:28 ` [Bug gdb/12192] " tomi.kyostila at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).