Re: GDB problem

Ishan <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <54d37f20-8cb1-4fff-b9de-d38763196533@j28g2000hsj.googlegroups.com>
I have done a "chmod a+s" on this program.
When I gdb it without doing the chmod, it works. Wonder whether this
problem is something to do with the setuid bit (that gets set when you
do chmod a+s).

Thanks,
Ishan.

On Feb 27, 2:43 pm, Ishan <[email protected]> wrote:
> Hi,
>
> Trying to GDB a program on Solaris 5.10, I get the following error.
>
> procfs: target_wait (wait_for_stop) line 3934, /proc/13225: Resource
> temporarily unavailable.
>
> When you quit from gdb, the program goes for an infinite loop. Only
> way to stop after that is to use "kill -9". Searching Google, I found
> that 32 & 64 bit difference can cause problems like this. When checked
> using the "file" command, both gdb and the program show as 32 bit.
>
> Any idea as to what's wrong here?
>
> Thanks,
> Ishan.
>
> $ gdb /home/release/5.10/<program>
> 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 "i386-pc-solaris2.10"...
> (gdb) r
> Starting program: /home/release/5.10/<program>
> procfs: target_wait (wait_for_stop) line 3934, /proc/13225: Resource
> temporarily unavailable.
> (gdb)
>
> Platform:
> $ uname -a
> SunOS embeaker 5.10 Generic_120012-14 i86pc i386 i86pc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.