Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "fzchuan" <fzchuan@eos.cs.nthu.edu.tw>
To: gdb@sourceware.org
Subject: set breakpoints in remote debugging
Date: Wed, 02 Nov 2005 17:34:00 -0000	[thread overview]
Message-ID: <20051102173427.M31340@eos.cs.nthu.edu.tw> (raw)
In-Reply-To: <20051102171409.M10763@eos.cs.nthu.edu.tw>


Hi all:

I encountered some problems in GDB remote debugging.
In most of time, GDB host would send correct breakpoint address to target which 
I asked it. But sometimes it would send strange address.
That is,in GDB host side,I set breakpoint on some address,i.e.:
(gdb)b *0x8

Then, in target side, target will receive the request. 
I print the message received from GDB host,
and it shows that GDB ask target to stop at 0xc6

I use GDB disassemble to query 0x8, and is shows that it is a Call (JUMP)
instruction and jump target address is 0xc6.

Why? thanks

Pin-Chuan



       reply	other threads:[~2005-11-02 17:34 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 [this message]
2005-11-02 17:36   ` Daniel Jacobowitz
2005-11-02 17:37   ` Paul Koning

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=20051102173427.M31340@eos.cs.nthu.edu.tw \
    --to=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