Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[64-bit code] procfs:4200 -- process not stopped. from gdb 7.4 on Solaris10 x86_64

49 views
Skip to first unread message

Kiyoshi KANAZAWA

unread,
Apr 5, 2012, 10:24:09 AM4/5/12
to bug...@gnu.org
Hello,

Gdb 7.4 can not run 64-bit code program, on Solaris10 x86_64.

[How-To-Repeat]
% cat hello.c
#include <stdio.h>

int main (void)
{
printf ("Hello.\n");
return 0;
}
% gcc -g -m32 hello.c
% gdb a.out
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.10".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/a.out...done.
(gdb) run
Starting program: /tmp/a.out
[Thread debugging using libthread_db enabled]
Hello.
[Inferior 1 (process 18771 ) exited normally]
(gdb) quit
% gcc -g -m64 hello.c
% gdb a.out
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.10".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /tmp/a.out...done.
(gdb) run
Starting program: /tmp/a.out
procfs:4200 -- process not stopped.
procfs: ...giving up...


[Environmen]
% uname -a
SunOS katie 5.10 Generic_147441-01 i86pc i386 i86pc

Gdb 7.4 was compiled with gcc-3.4.3
% gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix

Regards,

--- Kiyoshi <yoi_no_...@yahoo.co.jp>

Rainer Orth

unread,
Apr 10, 2012, 6:16:50 AM4/10/12
to gnu-g...@moderators.individual.net
Kiyoshi KANAZAWA <yoi_no_...@yahoo.co.jp> writes:

> Gdb 7.4 can not run 64-bit code program, on Solaris10 x86_64.
> % gcc -g -m64 hello.c
> % gdb a.out
> GNU gdb (GDB) 7.4
[...]
> This GDB was configured as "i386-pc-solaris2.10".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /tmp/a.out...done.
> (gdb) run
> Starting program: /tmp/a.out
> procfs:4200 -- process not stopped.
> procfs: ...giving up...

To debug a 64-bit program, you need a 64-bit gdb, but yours most likely
is a 32-bit binary. You can check this with running file on the gdb
binary.

Rebuild gdb with CC='gcc -m64' instead.

Rainer

--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

0 new messages