public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: pdubuc@cas.org To: gdb-gnats@sources.redhat.com Subject: gdb/2347: gdb 6.7 can't attach to process Date: Thu, 25 Oct 2007 18:48:00 -0000 [thread overview] Message-ID: <20071025184337.27230.qmail@sourceware.org> (raw) >Number: 2347 >Category: gdb >Synopsis: gdb 6.7 can't attach to process >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Thu Oct 25 18:48:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Paul M. Dubuc >Release: 6.7 >Organization: >Environment: uname -a Linux mrldev32 2.6.9-42.0.10.ELlargesmp #1 SMP Fri Feb 16 17:25:40 EST 2007 x86_64 GNU/Linux cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) gdb32 --version GNU gdb 6.7 Copyright (C) 2007 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 "--host=x86_64-unknown-linux-gnu --target=i686-redhat-linux". file `which gdb32` /projects/pmd25/gnu34/Linux/x86_64/bin/gdb32: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped gdb64 --version GNU gdb 6.7 Copyright (C) 2007 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 "--host=x86_64-unknown-linux-gnu --target=x86_64-redhat-linux" file `which gdb64` /projects/pmd25/gnu34/Linux/x86_64/bin/gdb64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped >Description: I build both a 32 and a 64 bit version of gdb because we run both kinds of processes. With gdb 6.7, neither version is able to attach to a process of its corresponding type. I'm not sure why the configurator picked x86_64-unknown-linux-gnu instead of x86_64-redhat-linux for the host triplet, but I notice that 'uname -p' says "unknown" for the processor type. If I'm building these wrong, maybe you can tell me what configuration options to use for these machines. >How-To-Repeat: cat loop.c main() { while(1) { sleep(10); } } gcc -m32 -g loop.c -o a.out32 gcc -g loop.c -o a.out64 file a.out32 a.out32: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped file a.out64 a.out64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped ./a.out32 & ./a.out64 & ps PID TTY TIME CMD 45639 pts/28 00:00:00 ksh 31739 pts/28 00:00:00 a.out64 6223 pts/28 00:00:00 a.out32 24575 pts/28 00:00:00 ps gdb32 GNU gdb 6.7 Copyright (C) 2007 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 "--host=x86_64-unknown-linux-gnu --target=i686-redhat-linux". (gdb) attach 6223 Don't know how to attach. Try "help target". (gdb) q gdb64 GNU gdb 6.7 Copyright (C) 2007 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 "--host=x86_64-unknown-linux-gnu --target=x86_64-redhat-linux". (gdb) attach 31739 Don't know how to attach. Try "help target". (gdb) q >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2007-10-25 18:48 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-10-25 18:48 pdubuc [this message] 2007-10-25 19:08 Daniel Jacobowitz 2007-10-26 19:08 Daniel Jacobowitz 2007-10-26 21:18 Paul M. Dubuc 2007-10-26 21:23 drow
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071025184337.27230.qmail@sourceware.org \ --to=pdubuc@cas.org \ --cc=gdb-gnats@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).