From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4711 invoked by alias); 4 Aug 2003 14:12:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4704 invoked from network); 4 Aug 2003 14:12:21 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 4 Aug 2003 14:12:21 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19jg4T-0000Mq-49 for ; Mon, 04 Aug 2003 10:12:21 -0400 Date: Mon, 04 Aug 2003 14:12:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: gdbserver tcsetpgrp() ?? Message-ID: <20030804141221.GA1345@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00038.txt.bz2 On Mon, Aug 04, 2003 at 06:35:17PM +0530, Vijay Saha, Noida wrote: > Hi > > I have ported the gdbserver 5.3 on arm-linux target. > But as soon as debugging finishes, the target system gets logged out. > > Then I had found that the "tcsetpgrp" in server.c:start_inferior() of > gdbserver was the culprit. > After commenting the line "tcsetpgrp (fileno (stderr), signal_pid);" , the > logout problem got solved !!! > > I have also found that gdb-5.2 was not using this system call !! > > What does this tcsetpgrp actually doing ..?? (It has something to do with > foreground processing of terminal ..means..??) > > How much is this necessary for remote debugging...?? Remote debugging will still work, sending control-c to interrupt the program won't. Console handling on your target is severely broken if that call is causing a problem. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer