From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14749 invoked by alias); 2 Nov 2005 17:36:27 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 14655 invoked by uid 22791); 2 Nov 2005 17:36:24 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 02 Nov 2005 17:36:24 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EXMX5-0000GB-2S; Wed, 02 Nov 2005 12:36:19 -0500 Date: Wed, 02 Nov 2005 17:36:00 -0000 From: Daniel Jacobowitz To: fzchuan Cc: gdb@sourceware.org Subject: Re: set breakpoints in remote debugging Message-ID: <20051102173619.GA962@nevyn.them.org> Mail-Followup-To: fzchuan , gdb@sourceware.org References: <20051102171409.M10763@eos.cs.nthu.edu.tw> <20051102173427.M31340@eos.cs.nthu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051102173427.M31340@eos.cs.nthu.edu.tw> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00040.txt.bz2 On Thu, Nov 03, 2005 at 01:34:48AM +0800, fzchuan wrote: > > 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 There is not enough information to answer your question. When does this happen? What does the remote protocol and GDB console show when it does? What target is this? -- Daniel Jacobowitz CodeSourcery, LLC