From: Paul Koning <pkoning@equallogic.com>
To: fzchuan@eos.cs.nthu.edu.tw
Cc: gdb@sourceware.org
Subject: Re: set breakpoints in remote debugging
Date: Wed, 02 Nov 2005 17:37:00 -0000 [thread overview]
Message-ID: <17256.63840.511458.853135@gargle.gargle.HOWL> (raw)
In-Reply-To: <20051102173427.M31340@eos.cs.nthu.edu.tw>
>>>>> "fzchuan" == fzchuan <fzchuan@eos.cs.nthu.edu.tw> writes:
fzchuan> Hi all:
fzchuan> I encountered some problems in GDB remote debugging. In
fzchuan> most of time, GDB host would send correct breakpoint address
fzchuan> to target which I asked it. But sometimes it would send
fzchuan> strange address. That is,in GDB host side,I set breakpoint
fzchuan> on some address,i.e.: (gdb)b *0x8
fzchuan> Then, in target side, target will receive the request. I
fzchuan> print the message received from GDB host, and it shows that
fzchuan> GDB ask target to stop at 0xc6
fzchuan> I use GDB disassemble to query 0x8, and is shows that it is
fzchuan> a Call (JUMP) instruction and jump target address is 0xc6.
fzchuan> Why? thanks
You probably did a step command. Step is usually done by setting a
breakpoint at the address after the instruction. For jumps, that
"next" address is the target address.
paul
prev parent reply other threads:[~2005-11-02 17:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20051102171409.M10763@eos.cs.nthu.edu.tw>
2005-11-02 17:34 ` fzchuan
2005-11-02 17:36 ` Daniel Jacobowitz
2005-11-02 17:37 ` Paul Koning [this message]
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=17256.63840.511458.853135@gargle.gargle.HOWL \
--to=pkoning@equallogic.com \
--cc=fzchuan@eos.cs.nthu.edu.tw \
--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