From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13121 invoked by alias); 18 Nov 2010 07:43:56 -0000 Received: (qmail 13111 invoked by uid 22791); 18 Nov 2010 07:43:55 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Nov 2010 07:43:48 +0000 Received: by wyf23 with SMTP id 23so3009740wyf.0 for ; Wed, 17 Nov 2010 23:43:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.51.12 with SMTP id a12mr235568wec.34.1290066225236; Wed, 17 Nov 2010 23:43:45 -0800 (PST) Received: by 10.216.237.74 with HTTP; Wed, 17 Nov 2010 23:43:45 -0800 (PST) Date: Thu, 18 Nov 2010 07:43:00 -0000 Message-ID: Subject: Problems in running gdb/gdbserver From: Pan ruochen To: insight@sourceware.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q4/txt/msg00013.txt.bz2 Hi All I=91m trying to build a gdbserver hosted on embedded mips linux and gdb hosted on Windows XP. Command for gdbserver is (on linux) CC=3Dmips-linux-gcc ./configure --prefix=3D/home/admin/gdb-install --host=3Di686-pc-linux-gnu --target=3Dmips-linux Command for gdb is (on MINGW) CC=3Dgcc ./configure --prefix=3D/d/gdb-install --host=3Di686-mingw32 --targ= et=3Dmips-elf Both gdb and gdbserver are built successfuly. And gdb connects to gdbserver successfully. --------------------------------------- GDBSERVER $gdbserver /dev/ttyS1 /test/a.out Remote debugging using /dev/ttyS1 GDB $gdb /z/rootfs/test/a.out (gdb)target remote COM2 Remote debugging using COM2 warning: Can ot pare XML target descrition: XML support was disabled at compile time. [New Thread 147] 0x2aaa8810 in ?? 0 ---------------------------------------- But I got some problems. 1. There is not a xxx-insight executable created in the installation direct= ory. 2. gdb can set breakpoints and traps on the breakpoints, but it can't step one instruction. The gdbserver reports ptrace: Input/output error. The gdb reports Warning: Remote failure reply: E01 Any advice is appreciated. PRC Nov 18,2010