From: Tristan Gingold <gingold@adacore.com>
To: Christian Thalinger <Christian.Thalinger@sun.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
Thiago Jung Bauermann <thiago.bauermann@gmail.com>,
gdb@sourceware.org, tromey@redhat.com
Subject: Re: status of Darwin support
Date: Mon, 10 Aug 2009 09:41:00 -0000 [thread overview]
Message-ID: <C11EE4DE-A0A0-4A9E-A86E-9153A7AC81C8@adacore.com> (raw)
In-Reply-To: <4A7ABAF0.7010004@Sun.COM>
On Aug 6, 2009, at 1:13 PM, Christian Thalinger wrote:
> 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.
Unknown issue. Can you try to investigate by yourself (ie, check that
your program can see DYLD_LIBRARY_PATH and is not setuid/setgid) ?
You may also post a tiny reproducer and I will look at this when I
have spare time.
> 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:
>
> And yes, it has debugging symbols. Anything I can do to change that?
I have just committed a patch that may fix this issue.
Do not hesitate to report issues also gdb for Darwin is not yet
feature full.
Tristan.
next prev parent reply other threads:[~2009-08-10 9:41 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
2009-08-06 11:17 ` Jonas Maebe
2009-08-10 9:41 ` Tristan Gingold [this message]
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=C11EE4DE-A0A0-4A9E-A86E-9153A7AC81C8@adacore.com \
--to=gingold@adacore.com \
--cc=Christian.Thalinger@sun.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--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