From: Christian Thalinger <Christian.Thalinger@Sun.COM>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Thiago Jung Bauermann <thiago.bauermann@gmail.com>,
gdb@sourceware.org, tromey@redhat.com,
Tristan Gingold <gingold@adacore.com>
Subject: Re: status of Darwin support
Date: Thu, 06 Aug 2009 11:14:00 -0000 [thread overview]
Message-ID: <4A7ABAF0.7010004@Sun.COM> (raw)
In-Reply-To: <20090805044504.GJ4370@adacore.com>
Joel Brobecker wrote:
>> Joel would probably know. My best guess is that even if Darwin support
>> is much better now, the MI incompatibilities would mean that you
>> wouldn't be able to drop FSF's GDB in place of Apple's for Xcode.
>
> Actually, I won't know that much more. Tristan is the one who looks
> after that port. As far as I know, we're using it internally, to
> debug GNAT for instance, and it seems to be working well. Thiago
> is right about the bunch of local additions that Apple made to GDB,
> though.
Hmm, I have problems with shared libraries. One thing is that the
shared library is only found when it's in the current directory,
otherwise:
(gdb) r
Starting program: /Users/twisti/bsd-port/hotspot/build/bsd/bsd_i486_compiler2/jvmg/gamma
dyld: Library not loaded: libjvm.dylib
Referenced from: /Users/twisti/bsd-port/hotspot/build/bsd/bsd_i486_compiler2/jvmg/gamma
Reason: image not found
Even if the path to the library is in DYLD_LIBRARY_PATH. The other
problem is that debugging symbols for shared libraries are not loaded.
I can set a breakpoint in the main executable and debug it:
(gdb) c
Continuing.
Breakpoint 2, CreateExecutionEnvironment (_argcp=0xbffff630, _argvp=0xbffff634, jrepath=0xbffff194 "", so_jrepath=1024, jvmpath=0xbfffed94 "", so_jvmpath=1024,
original_argv=0x1005c0) at /Users/twisti/bsd-port/hotspot/src/os/bsd/launcher/java_md.c:238
238 char *execname = NULL;
(gdb) bt
#0 CreateExecutionEnvironment (_argcp=0xbffff630, _argvp=0xbffff634, jrepath=0xbffff194 "", so_jrepath=1024, jvmpath=0xbfffed94 "", so_jvmpath=1024, original_argv=0x1005c0)
at /Users/twisti/bsd-port/hotspot/src/os/bsd/launcher/java_md.c:238
#1 0x00001ce6 in main (argc=2, argv=0xbffff654) at /Users/twisti/bsd-port/hotspot/src/os/bsd/launcher/java.c:250
But an assert in the shared library gives:
Current thread is 2954858496
Dumping core ...
[New Thread 0x1f03 of process 71094]
[New Thread 0x2003 of process 71094]
[New Thread 0x2103 of process 71094]
[New Thread 0x2203 of process 71094]
[New Thread 0x2303 of process 71094]
[New Thread 0x2403 of process 71094]
Program received signal SIGABRT, Aborted.
0x95bd046e in ?? ()
(gdb) info threads
7 Thread 0x2403 of process 71094 0x95bd046e in ?? ()
6 Thread 0x2303 of process 71094 0x95ca5136 in ?? ()
5 Thread 0x2203 of process 71094 0x95bc92c2 in ?? ()
4 Thread 0x2103 of process 71094 0x95bd046e in ?? ()
3 Thread 0x2003 of process 71094 0x95bd046e in ?? ()
2 Thread 0x1f03 of process 71094 0x95bd046e in ?? ()
* 1 Thread 0x1d03 of process 71094 0x95bd046e in ?? ()
(gdb) bt
#0 0x95bd046e in ?? ()
#1 0x95bfb3e6 in ?? ()
#2 0x00001803 in ?? ()
#3 0x00001903 in ?? ()
#4 0x00000000 in ?? ()
And yes, it has debugging symbols. Anything I can do to change that?
-- Christian
next prev parent reply other threads:[~2009-08-06 11:14 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 20:29 Christian Thalinger
2009-08-04 16:52 ` Tom Tromey
2009-08-04 21:03 ` Thiago Jung Bauermann
2009-08-05 4:45 ` Joel Brobecker
2009-08-06 11:14 ` Christian Thalinger [this message]
2009-08-06 11:17 ` Jonas Maebe
2009-08-10 9:41 ` Tristan Gingold
2009-08-10 10:47 ` Christian Thalinger
2009-08-10 18:36 ` Tom Tromey
2009-08-10 20:20 ` Paul Pluzhnikov
2009-08-11 5:06 ` Paul Pluzhnikov
2009-08-11 6:59 ` Tristan Gingold
2009-08-11 7:14 ` Paul Pluzhnikov
2009-08-11 7:43 ` Tristan Gingold
2009-08-11 8:20 ` Christian Thalinger
2009-08-11 8:28 ` Christian Thalinger
2009-08-11 16:33 ` Paul Pluzhnikov
2009-08-11 16:43 ` Christian Thalinger
2009-08-11 16:48 ` Paul Pluzhnikov
2009-08-11 16:49 ` Christian Thalinger
2009-08-11 17:12 ` Paul Pluzhnikov
2009-08-11 17:25 ` Christian Thalinger
2009-08-11 17:38 ` Paul Pluzhnikov
2009-08-11 17:54 ` Christian Thalinger
2009-08-12 16:26 ` Paul Pluzhnikov
2009-08-12 16:45 ` Christian Thalinger
2009-08-26 0:18 ` [patch] [new testcase] Regression on qsort_cmp [Re: status of Darwin support] Jan Kratochvil
2009-09-08 9:31 ` Tristan Gingold
2009-09-08 13:04 ` Jack Howarth
2009-08-06 10:51 ` status of Darwin support Christian Thalinger
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=4A7ABAF0.7010004@Sun.COM \
--to=christian.thalinger@sun.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=gingold@adacore.com \
--cc=thiago.bauermann@gmail.com \
--cc=tromey@redhat.com \
/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