From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23841 invoked by alias); 23 Aug 2007 02:56:29 -0000 Received: (qmail 22139 invoked from network); 23 Aug 2007 02:56:18 -0000 Received: from unknown (202.108.59.148) by sourceware.org with QMTP; 23 Aug 2007 02:56:18 -0000 Received: (qmail 13348 invoked from network); 23 Aug 2007 10:50:59 +0800 Received: from unknown (HELO xchen) (Authenticated?user:?xchen@sunrisetelecom.com.cn@[211.157.209.206]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 23 Aug 2007 10:50:59 +0800 From: "xchen" To: Subject: Unknown error with gdb [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] Date: Thu, 23 Aug 2007 02:56:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 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-08/txt/msg00168.txt.bz2 Message-ID: <20070823025600.1gr6nlpBYLm6g1Oxalj_V3p6CVha-D0fUtff42grI_c@z> 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