From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31823 invoked by alias); 13 Sep 2010 10:44:02 -0000 Received: (qmail 31812 invoked by uid 22791); 13 Sep 2010 10:44:01 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_PM X-Spam-Check-By: sourceware.org Received: from mail-ew0-f41.google.com (HELO mail-ew0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Sep 2010 10:43:56 +0000 Received: by ewy28 with SMTP id 28so3079767ewy.0 for ; Mon, 13 Sep 2010 03:43:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.22.66 with SMTP id m2mr1383250ebb.56.1284374634443; Mon, 13 Sep 2010 03:43:54 -0700 (PDT) Received: by 10.14.121.13 with HTTP; Mon, 13 Sep 2010 03:43:54 -0700 (PDT) In-Reply-To: <20100913084127.GA25115@host1.dyn.jankratochvil.net> References: <20100913084127.GA25115@host1.dyn.jankratochvil.net> Date: Mon, 13 Sep 2010 10:44:00 -0000 Message-ID: Subject: Re: gdb 7.2: problem reading core generated by executable compiled by gcc-4.1.2/glibc-2.5-24 From: Pawel K To: Jan Kratochvil Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00080.txt.bz2 Hallo Jan prompt# file ./binary.debug ./binary.debug: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped prompt# file ./core.15070 ./core.15070: ELF 32-bit LSB core file Intel 80386, version 1 (SYSV), SVR4-style, from 'binary' > If you mean Red Hat Enterprise Linux (AKA RHEL) 5.x then you can use > from RHEL 5.5 or CentOS 5.5: > rpmbuild --rebuild --with python gdb-7.0.1-23.el5.src.rpm > `--with python' would be default (but the binary rpms do not have it). > Such binary will not be unsupported. unfortunatelly it didn't help: prompt# gdb --annotate=3 ./binary.debug GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-redhat-linux". For bug reporting instructions, please see: ... Reading symbols from binary.debug...done. (gdb) core core.15070 core.15070 is not a core dump: File format not recognized (gdb) > You should compare what `file /var/tmp/core.5595' thinks about it together > with what prints just `gdb' when you run it: > This GDB was configured as "[...?]". by the way, gdb 7.2 compiled and installed from tar ball printed: This GDB was configured as "i686-pc-linux-gnu". where else can the problem be? best regards, Pawel