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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Kiyoshi KANAZAWA :: Rate this Message:

| View Threaded | Show Only this Message

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

_______________________________________________
bug-gdb mailing list
bug-gdb@...
https://lists.gnu.org/mailman/listinfo/bug-gdb

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

by Rainer Orth-2 :: Rate this Message:

| View Threaded | Show Only this Message

Kiyoshi KANAZAWA <yoi_no_myoujou@...> 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

_______________________________________________
bug-gdb mailing list
bug-gdb@...
https://lists.gnu.org/mailman/listinfo/bug-gdb