gdb 4.18 on Solaris 7 x86?

Michael Snyder
Tue Aug 31 17:00:00 GMT 1999

Petr Ovchenkov wrote:
> Is anybody made 4.18 working under Solaris 7 x86?

I don't have a Solaris 7 x86 system, but it works
fine for me on Solaris 6 x86.  I'm not sure what
might have changed in Solaris 7.

> 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).

Can't comment without seeing your changes.
I've never seen that message, and breakpoints are
working fine for me on Solaris 6 x86.

> > more test.c
> #include <stdio.h>
> int main( int argc, char **argv )
> {
>   printf( "%s", "Hello, GNU!\n" );
>   return 0;
> }
> > gcc -ggdb test.c -lthread

Just curious -- why are you linking libthread to this program?

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

I'd be willing to look at your patch.

				Michael Snyder

More information about the Gdb mailing list