From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17447 invoked by alias); 16 Apr 2009 07:00:16 -0000 Received: (qmail 17434 invoked by uid 22791); 16 Apr 2009 07:00:15 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from yx-out-1718.google.com (HELO yx-out-1718.google.com) (74.125.44.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Apr 2009 07:00:07 +0000 Received: by yx-out-1718.google.com with SMTP id 3so203090yxi.48 for ; Thu, 16 Apr 2009 00:00:04 -0700 (PDT) Received: by 10.90.91.9 with SMTP id o9mr1353013agb.10.1239865204438; Thu, 16 Apr 2009 00:00:04 -0700 (PDT) Received: from ?192.168.43.19? ([212.143.139.215]) by mx.google.com with ESMTPS id 33sm1874333yxr.27.2009.04.16.00.00.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Apr 2009 00:00:03 -0700 (PDT) Message-ID: <49E6D676.9000108@gmail.com> Date: Thu, 16 Apr 2009 07:00:00 -0000 From: Lennyk User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Core dump information when code is optimized Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2009-04/txt/msg00133.txt.bz2 Hi, When I compile only with -O1 flag - my core dump information does not show line number or offset (when a segmentation fault has occurred). Only when I add the -g flag does the core dump contain line number information - but the executable's size grows significantly! Is there a way to get this information with core dump - but maintain the optimized sized executable? Thanks!