From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27141 invoked by alias); 2 Nov 2007 04:12:01 -0000 Received: (qmail 27132 invoked by uid 22791); 2 Nov 2007 04:12:00 -0000 X-Spam-Check-By: sourceware.org Received: from MGW3.Sony.CO.JP (HELO mgw3.sony.co.jp) (137.153.0.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Nov 2007 04:11:57 +0000 Received: from mail7.sony.co.jp ([43.0.1.209]) Received: from mail7.sony.co.jp (localhost [127.0.0.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id lA24BoLb019477 for ; Fri, 2 Nov 2007 13:11:51 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail7.sony.co.jp (R8/Sony) with ESMTP id lA24BmYc019435 for ; Fri, 2 Nov 2007 13:11:49 +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 lA24Ble24477 for ; Fri, 2 Nov 2007 13:11:47 +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 lA24BlmJ003319 for ; Fri, 2 Nov 2007 13:11:47 +0900 (JST) Date: Fri, 02 Nov 2007 04:12:00 -0000 From: Yoriko Komatsuzaki To: gdb@sourceware.org Subject: Re: gdbserver using serial port In-Reply-To: <20071102022518.GA21674@caradoc.them.org> References: <20071102105157.D940.YORIKO@sm.sony.co.jp> <20071102022518.GA21674@caradoc.them.org> Message-Id: <20071102125546.D942.YORIKO@sm.sony.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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/msg00007.txt.bz2 Thank you for your answer. My environment is a littel special. 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". So I guess that this special hardware environment might affects this problem. % 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... Thank you. --- Yoriko Komatsuzaki (yoriko@sm.sony.co.jp) > On Fri, Nov 02, 2007 at 11:14:13AM +0900, Yoriko Komatsuzaki wrote: > > Hello, > > > > I would like to ask you about gdbserver in case of using serial port. > > In gdb-6.6, if I run gdbserver using serial port, the following messages > > continue and it can't establish the connection to host gdb. > > Yes, serial support was broken in gdbserver 6.6. > > > % gdbserver /dev/ttyS0 a.out > > Process a.out created; pid = 10696 > > Remote debugging using /dev/ttyS0 > > > > So I ran the host gdb and tried to establish the connection between host > > and target, but couldn't establish the connections channel. > > Please be more specific. What does "set debug serial 1" and "set > debug remote 1" before connecting show? > > If your console is /dev/ttyS0 and a.out writes to the terminal, you > will need to redirect it, or it will interfere with communication. > > -- > Daniel Jacobowitz > CodeSourcery