From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17359 invoked by alias); 2 Nov 2007 02:25:25 -0000 Received: (qmail 17347 invoked by uid 22791); 2 Nov 2007 02:25:24 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Nov 2007 02:25:22 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 4A88D98103; Fri, 2 Nov 2007 02:25:20 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id EFC0B980A7; Fri, 2 Nov 2007 02:25:19 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1InmDm-0005dv-D0; Thu, 01 Nov 2007 22:25:18 -0400 Date: Fri, 02 Nov 2007 02:25:00 -0000 From: Daniel Jacobowitz To: Yoriko Komatsuzaki Cc: gdb@sourceware.org Subject: Re: gdbserver using serial port Message-ID: <20071102022518.GA21674@caradoc.them.org> Mail-Followup-To: Yoriko Komatsuzaki , gdb@sourceware.org References: <20071102105157.D940.YORIKO@sm.sony.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071102105157.D940.YORIKO@sm.sony.co.jp> User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00006.txt.bz2 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