From: Jonas Maebe <jonas.maebe@elis.ugent.be>
To: "Ben L. Titzer" <ben.titzer@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Break at address on darwin
Date: Tue, 02 Aug 2011 20:31:00 -0000 [thread overview]
Message-ID: <5456BE39-F808-4255-B327-334CBC46B068@elis.ugent.be> (raw)
In-Reply-To: <CAL9pw=9G_gfC4YZ+WysgNVGQi+VqHLm2JQoLsY-Rg-pD82B7Tw@mail.gmail.com>
On 02 Aug 2011, at 21:19, Ben L. Titzer wrote:
> On Tue, Aug 2, 2011 at 12:00 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>> Are you certain you are setting a breakpoint on an address (eg, b
>> 0x40000000)? Or is it a symbolic name (b main)?
Just to make sure: to put a breakpoint on an address, it's "b *0x40000000" (i.e., with an extra "*"; but you'd notice if you used the wrong syntax, since gdb would complain that it can't find a symbol with that name).
> It's an address. I ænow for sure it's being executed because it's the
> first instruction in the binary.
Actually, I've noticed on many platforms that breakpoints on the very first instruction don't work. Did you also try other instructions?
Jonas
next prev parent reply other threads:[~2011-08-02 20:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-02 16:47 Ben L. Titzer
2011-08-02 19:00 ` Jeffrey Walton
2011-08-02 19:19 ` Ben L. Titzer
2011-08-02 20:31 ` Jonas Maebe [this message]
2011-08-02 21:51 ` Ben L. Titzer
2011-08-03 8:09 ` Tristan Gingold
2011-08-03 9:00 ` Pedro Alves
2011-08-03 9:05 ` Jonas Maebe
2011-08-03 13:45 ` Ben L. Titzer
2011-08-03 14:06 ` Pedro Alves
2011-08-03 21:00 ` Ben L. Titzer
2011-08-04 7: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=5456BE39-F808-4255-B327-334CBC46B068@elis.ugent.be \
--to=jonas.maebe@elis.ugent.be \
--cc=ben.titzer@gmail.com \
--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