From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2038 invoked by alias); 23 Aug 2007 07:59:52 -0000 Received: (qmail 1408 invoked by uid 22791); 23 Aug 2007 07:59:49 -0000 X-Spam-Check-By: sourceware.org Received: from smtpout0163.sc1.he.tucows.com (HELO n066.sc1.he.tucows.com) (64.97.136.163) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 23 Aug 2007 07:59:42 +0000 Received: from m20 (82.25.191.154) by n066.sc1.he.tucows.com (7.2.069.1) id 466CB207005217D9; Thu, 23 Aug 2007 07:57:32 +0000 Subject: Re: Unknown error with gdb [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] From: Stuart Hughes To: xchen Cc: gdb@sourceware.org In-Reply-To: <20070823025630.E5EB6D7FBF@cm-ms5.globat.com> References: <20070823025630.E5EB6D7FBF@cm-ms5.globat.com> Content-Type: text/plain Date: Thu, 23 Aug 2007 07:59:00 -0000 Message-Id: <1187855851.3805.37.camel@m20> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-4.fc4) Content-Transfer-Encoding: 7bit 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-08/txt/msg00170.txt.bz2 Hi Xi, I'm not sure if it's the same isse, but in LTIB we have this patch for gdb: http://www.bitshrine.org/gpp/gdb-6.3-tcsetpgrp-1.patch Regards, Stuart On Thu, 2007-08-23 at 10:55 +0800, xchen wrote: > Hi > > I meet this error when I use gdb run on 860 board > > compile gdb > CC=ppc_8xx-gcc AR=ppc_8xx-ar RANLIB=ppc_8xx-ranlib LD=ppc_8xx-ld ./configure > --build=i686-linux --host=ppc-linux --prefix=/us > r --sysconfdir=/etc |tee configure.out > make 2>&1 | tee make.out > make install 2>&1 | tee -a make.out > > belowed is the snapshot for gdb > > # cat hellogdb.c > #include > > int main() > { > int i=1; > int m=2; > printf("hello gdb\n"); > return 1; > } > # ./gdb hellogdb > GNU gdb 6.6 > Copyright (C) 2006 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "ppc-linux"... > Using host libthread_db library "/lib/libthread_db.so.1". > (gdb) b main > Breakpoint 1 at 0x100003ec: file hellogdb.c, line 5. > (gdb) run > Starting program: /mnt/cf/system/hellogdb > [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] > [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] > [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] > [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] > > Breakpoint 1, main () at hellogdb.c:5 > 5 int i=1; > (gdb) step > [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] > 6 int m=2; > > Does anyone know the reason? > > Thx > > Xi >