From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26270 invoked by alias); 5 Dec 2009 14:35:25 -0000 Received: (qmail 26258 invoked by uid 22791); 5 Dec 2009 14:35:24 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Dec 2009 14:35:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NGvjC-0008Af-0i for gcc-help@gcc.gnu.org; Sat, 05 Dec 2009 06:35:18 -0800 Message-ID: <26656155.post@talk.nabble.com> Date: Sat, 05 Dec 2009 17:49:00 -0000 From: muzehyun_ To: gcc-help@gcc.gnu.org Subject: Q: -g and debugging symbol MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00111.txt.bz2 1. compile without debugging option gcc foo.c 2. compile with debugging option gcc -g foo.c then strip out debugging symbol strip foo.out Q Why those result binaries are different? second one is much smaller in size I can set brakepoint with first one with gdb (didn't compiled with debugging option), but not second one. I guess some dubugging information is included even without debugging option. Is there any compile option that makes first and second one same? Thank you -- View this message in context: http://old.nabble.com/Q%3A--g-and-debugging-symbol-tp26656155p26656155.html Sent from the gcc - Help mailing list archive at Nabble.com.