public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Tristan Gingold <gingold@adacore.com>
To: Kaushik Srenevasan <ks@sysenter.org>
Cc: gdb@sourceware.org
Subject: Re: GDB 7.5 on OS X 10.7
Date: Fri, 31 Aug 2012 09:19:00 -0000	[thread overview]
Message-ID: <CBCECBA6-D083-4DEB-BF33-D0B8D25DA2EA@adacore.com> (raw)
In-Reply-To: <CA+ySYwvtFJ7FWAXtDWS9cGfq330AenYLjsnY98J0YSg1vFovFA@mail.gmail.com>


On Aug 31, 2012, at 6:37 AM, Kaushik Srenevasan wrote:

> Is GDB (7.5) known to work on OS X 10.7? I compiled it from GIT with
> all defaults except the prefix but don't seem to be able to get even
> the basic commands (bt, break) to work.

Yes, it is known to work (I use it every days).  However there is still many issues because it is not heavily used.
In particular, I rarely debug dylibs.

Tristan.

> 
>  file ~/src/jdk7/build/macosx-x86_64-debug/bin/java
>  set args -classpath ~/src/tmp helloworld
>  catch load libjvm
> 
> Catchpoint 1
>  Inferior loaded
> /Users/ks/src/jdk7/build/macosx-x86_64-debug/lib/server/libjvm.dylib
> 0x00007fff5fc0b269 in ?? ()
> (gdb) bt
> #0  0x00007fff5fc0b269 in ?? ()
> #1  0x00007fff5fc0b24d in ?? ()
> #2  0x00000001000d1a50 in ?? ()
> #3  0x00007fff5fc3b560 in ?? ()
> #4  0x00000001000d1f20 in ?? ()
> #5  0x00007fff5fc0540e in ?? ()
> #6  0x0000000101800000 in ?? ()
> #7  0x0000000100200300 in ?? ()
> #8  0x0000000050403138 in ?? ()
> #9  0x00007fff5fc052ea in ?? ()
> #10 0x0000000100200260 in ?? ()
> #11 0x00000001000d1ae8 in ?? ()
> #12 0x0000000000000000 in ?? ()
> (gdb) break LRG::set_mask
> Cannot access memory at address 0x141be0
> 
> It looks like break was able to find the symbol's address. The address
> however looks suspect to me. The target (if that matters) is a debug
> build of the OpenJDK.
> 
>            --- Kaushik

  reply	other threads:[~2012-08-31  9:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31  4:37 Kaushik Srenevasan
2012-08-31  9:19 ` Tristan Gingold [this message]
2012-08-31 13:49   ` Jack Howarth
2012-08-31 14:19     ` Tristan Gingold

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=CBCECBA6-D083-4DEB-BF33-D0B8D25DA2EA@adacore.com \
    --to=gingold@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=ks@sysenter.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).