From: eranon <eric.anon@laposte.net>
To: gdb@sourceware.org
Subject: 'Cannot find bounds of current function' when stepping with GDB 7.6 under OS X 10.6 / LLVM GCC 4.2
Date: Wed, 05 Feb 2014 12:24:00 -0000 [thread overview]
Message-ID: <1391603058245-259756.post@n7.nabble.com> (raw)
Hello. I'm porting a wxWidgets-based app towards Mac. For this, my dev
station is under OS X 10.6 Snow Leopard with the Xcode 4.2 tools (but I'm
using Codeblocks as IDE). I built wxWidgets 3.0.0 and my own project using
the Apple flavor of GCC (aka. LLVM GCC 4.2), indicating arch i386. My
problem is about debugging : to be able to plug a pretty printer for seeing
the wxWidgets structure (e.g. wxString), I need a Python-enabled gdb, and
the one provided by Apple in the Xcode tools is not. So, I've taken a try
with FSF gdb 7.6 as per http://sourceware.org/gdb/wiki/BuildingOnDarwin, but
I experience the impossibility to go step by step. Not talking about IDE,
but launching gdb from the command line, the first breakpoint is honored,
but using the "n" command to execute one step at a time, I get this error :
"cannot find bounds of current function". Since the Apple gdb is still under
/usr/bin/, I call the FSF gdb 7.6 with its absolute path (tried with an
in-place use and with make install under /usr/local/bin and it give the same
result/error). Of course, at this step not any pretty printer Python script
is involved (it will be the next stage if I solve my current issue). I tried
to rebuild my project passing an explicit "-ggdb" option rather than the
implicit "-g", but it doesn't change anything (same error during stepping).
So, what to do ? Do you have an idea about the reason why ? Is it because of
incompatible debug info, an issue about arch, a too big gap between the LLVM
GCC 4.2 and FSF GDB 7.6... ? I need your lighted advice for sure...
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Cannot-find-bounds-of-current-function-when-stepping-with-GDB-7-6-under-OS-X-10-6-LLVM-GCC-4-2-tp259756.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
next reply other threads:[~2014-02-05 12:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-05 12:24 eranon [this message]
2014-02-06 15:10 ` eranon
2014-02-06 15:31 ` Tristan Gingold
2014-02-06 17:56 ` eranon
2014-02-07 8:55 ` Tristan Gingold
2014-02-07 20:00 ` eranon
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=1391603058245-259756.post@n7.nabble.com \
--to=eric.anon@laposte.net \
--cc=gdb@sourceware.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