This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unknown error with gdb [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]


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<stdio.h>
>  
> 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
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]