This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: gdb 4.18 on Solaris 7 x86?
- To: gdb@sourceware.cygnus.com
- Subject: Re: gdb 4.18 on Solaris 7 x86?
- From: Michael Snyder <msnyder@cygnus.com>
- Date: Tue, 31 Aug 1999 16:50:49 -0700
- CC: ptr@paragraph.ru
- DJ-Gateway: from newsgroup cygnus.gdb
- Newsgroups: cygnus.gdb
- Organization: Cygnus Solutions
- References: <14273.5137.480144.257285@icecle>
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