From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12894 invoked by alias); 2 Nov 2005 17:34:54 -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 12805 invoked by uid 22791); 2 Nov 2005 17:34:50 -0000 Received: from eos.cs.nthu.edu.tw (HELO eos.cs.nthu.edu.tw) (140.114.71.71) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 02 Nov 2005 17:34:50 +0000 Received: from eos.cs.nthu.edu.tw (localhost [127.0.0.1]) by eos.cs.nthu.edu.tw (Postfix) with ESMTP id 3285CBEE03 for ; Thu, 3 Nov 2005 01:34:48 +0800 (CST) From: "fzchuan" To: gdb@sourceware.org Subject: set breakpoints in remote debugging Date: Wed, 02 Nov 2005 17:34:00 -0000 Message-Id: <20051102173427.M31340@eos.cs.nthu.edu.tw> In-Reply-To: <20051102171409.M10763@eos.cs.nthu.edu.tw> References: <20051102171409.M10763@eos.cs.nthu.edu.tw> X-OriginatingIP: 140.114.71.236 (fzchuan) MIME-Version: 1.0 Content-Type: text/plain; charset=big5 X-SW-Source: 2005-11/txt/msg00039.txt.bz2 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