From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18612 invoked by alias); 20 Jun 2006 13:20:43 -0000 Received: (qmail 18560 invoked by uid 22791); 20 Jun 2006 13:20:42 -0000 X-Spam-Check-By: sourceware.org Received: from sccrmhc15.comcast.net (HELO sccrmhc15.comcast.net) (204.127.200.85) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 13:20:36 +0000 Received: from ultsol.com (c-24-147-245-185.hsd1.ma.comcast.net[24.147.245.185]) by comcast.net (sccrmhc15) with ESMTP id <200606201320330150091rjfe>; Tue, 20 Jun 2006 13:20:34 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Trying to remote debug question Date: Tue, 20 Jun 2006 13:24:00 -0000 Message-ID: <81C69D96BDD30640952C7A404004AA2543A7A8@ultsol01.tewks.ultsol.local> From: "Fahd Abidi" To: "Daniel Jacobowitz" Cc: X-IsSubscribed: yes 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 X-SW-Source: 2006-06/txt/msg00142.txt.bz2 Thank you, that sounds promising. Would you happen to know the command to tell gdbserver to write its stdout/stderr to /dev/null? Fahd =20 -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Tuesday, June 20, 2006 8:31 AM To: Fahd Abidi Cc: gdb@sourceware.org Subject: Re: Trying to remote debug question On Mon, Jun 19, 2006 at 01:28:28PM -0400, Fahd Abidi wrote: > Hello, >=20 > I am trying to launch a remote debug into my target, I have a mips=20 > based board but with only one serial port and No ethernet. I use the=20 > serial port as the target console for my 2.6 kernel. >=20 > I am wondering if I can launch the GDBServer to use /dev/ttyS0 even=20 > though my Linux console is also tied to this com port? It is the only=20 > comport available on the target so I have to try and use it for both=20 > my console and remote debugging. When I try to launch a GDB session to > this port it says "inappropriate IOCTL for this device". There used to be a multiplexer, called kdmx, that allowed you to use one port for both console and debug. But I haven't seen a copy of it in a few years now. The inappropriate ioctl message can probably be ignored. If you tell gdbserver to write its stdout/stderr to /dev/null and to open a connection to /dev/ttyS0, it should work. --=20 Daniel Jacobowitz CodeSourcery