gdb 4.18 on Solaris 7 x86?

Petr Ovchenkov ptr@paragraph.ru
Mon Aug 23 02:32:00 GMT 1999


Is anybody made 4.18 working under Solaris 7 x86?

I made changes in gdb/procfs.c so no more
"Inappropriate ioctl for device" happens, and correct permittions for
/proc/XXXX/crt. But still can't set any breakpoint (indeed can,
but gdb don't stop on it).

> uname -a
SunOS icecle 5.7 Generic i86pc i386 i86pc
> gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95/specs
gcc version 2.95 19990728 (release)


Result same for C and C++.

> more test.c
#include <stdio.h>

int main( int argc, char **argv )
{
  printf( "%s", "Hello, GNU!\n" );
  return 0;
}
> gcc -ggdb test.c -lthread
> a.out
Hello, GNU!
> gdb a.out
GNU gdb 4.18
Copyright 1998 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 "i386-pc-solaris2.7"...
(gdb) break main
Breakpoint 1 at 0x80489b2: file test.c, line 5.
(gdb) run
Starting program: /export/home/ptr/tmp/Test/a.out 
Hello, GNU!
/proc/11504/ctl: No such file or directory.
procfs_write_pcwstop failed
(gdb) quit
The program is running.  Exit anyway? (y or n) y
> 

When gdb say "/proc/11504/ctl: No such file or directory.", process
already exited. When I try "target solaris-thread", result the same.

Can any help?

If somebody interesting by /proc/... workaround for Solaris 7,
patch for available.

        - Petr



More information about the Gdb mailing list