From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21005 invoked by alias); 5 Nov 2007 09:53:30 -0000 Received: (qmail 20982 invoked by uid 22791); 5 Nov 2007 09:53:29 -0000 X-Spam-Check-By: sourceware.org Received: from MGW2.Sony.CO.JP (HELO mgw2.sony.co.jp) (137.153.0.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 Nov 2007 09:53:27 +0000 Received: from mail2.sony.co.jp ([43.0.1.202]) Received: from mail2.sony.co.jp (localhost [127.0.0.1]) by mail2.sony.co.jp (R8/Sony) with ESMTP id lA59rOn1023156 for ; Mon, 5 Nov 2007 18:53:24 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail2.sony.co.jp (R8/Sony) with ESMTP id lA59rOg6023139 for ; Mon, 5 Nov 2007 18:53:24 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.4.141.32]) by smail1.sm.sony.co.jp (8.11.6p2/8.11.6) with ESMTP id lA59rNe04553 for ; Mon, 5 Nov 2007 18:53:23 +0900 (JST) Received: from [43.4.145.251] (gco-w12f-vlan145-251.sm.sony.co.jp [43.4.145.251]) by imail.sm.sony.co.jp (8.12.11/3.7W) with ESMTP id lA59rNqr006134 for ; Mon, 5 Nov 2007 18:53:23 +0900 (JST) Date: Mon, 05 Nov 2007 09:53:00 -0000 From: Yoriko Komatsuzaki To: gdb@sourceware.org Subject: Re: gdbserver using serial port In-Reply-To: <20071102113137.GA16563@caradoc.them.org> References: <20071102125546.D942.YORIKO@sm.sony.co.jp> <20071102113137.GA16563@caradoc.them.org> Message-Id: <20071105184252.E06F.YORIKO@sm.sony.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.07.04 [ja] X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00031.txt.bz2 Thank you for your Reply. I checked the setting details, and I retried. (I checked that the target serial baud-rate is 115200.) Then I got the follwing result. But the target program does'nt execute. I'm sorry, but could you tell me what causes like this result ? ... (gdb) set remotebaud 115200 (gdb) set debug remote 1 (gdb) set debug serial 1 (gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 Sending packet: $qSupported#37...[ r ]Sending packet: $qSupported#37...[q]putpkt: Junk: q[= S]S[u]u[p]p[p]p[o]o[r]r[t]t[e]e[d]d[#]#[3]3[7]7[] Sending packet: $qSupported#37...[$]Packet instead of Ack, ignoring it [q][S][u][p][p][o][r][t][e][d][#][3][7][+]Ack []Timed out. [-][]Timed out. [-][]Timed out. Ignoring packet error, continuing... Packet qSupported (supported-packets) is supported warning: unrecognized item "timeout" in "qSupported" response Sending packet: $Hc-1#09...[-]Nak Sending packet: $Hc-1#09...[+]Ack [+][$][H][c][-][1][#][0][9]Packet received: Hc-1 Sending packet: $qC#b4...[$]Packet instead of Ack, ignoring it [H][c][-][1][#][0][9][+]Ack [$][q][C][#][b][4]Packet received: qC Sending packet: $qOffsets#4b...[+]Ack [+][$][q][O][f][f][s][e][t][s][#][4][b]Packet received: qOffsets Malformed response to offset query, qOffsets (gdb) Thank you,=20 Yoriko Komatsuzaki > On Fri, Nov 02, 2007 at 01:11:47PM +0900, Yoriko Komatsuzaki wrote: > >=20 > > Thank you for your answer. > >=20 > > My environment is a littel special. > >=20 > > On target (gdbserver run), the serial (/dev/ttyS0) is used as the > > channel. But on host (gdb run), the usb (/dev/ttyUSB0) is used. > > And the host and the target is connected by "the serial/usb > > transimission cable".=20 > >=20 > > So I guess that this special hardware environment might affects this > > problem. > >=20 > > % gdb > > (gdb) set debug remote 1 > > (gdb) set debug serial 1 > > (gdb) target remote /dev/ttyUSB0 > > Remote debugging using /dev/ttyUSB0 > > Sending packet: $qSupported#37... >=20 > This looks like either a baud rate problem, or some other complete > failure of serial support on your host. GDB can't read even a single > byte from your target. >=20 > --=20 > Daniel Jacobowitz > CodeSourcery --- Yoriko Komatsuzaki (yoriko@sm.sony.co.jp)