From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20564 invoked by alias); 14 Jun 2005 02:01:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20544 invoked by uid 22791); 14 Jun 2005 02:01:40 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 02:01:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1Di0kE-00054E-Om for gdb@sources.redhat.com; Mon, 13 Jun 2005 22:01:38 -0400 Date: Tue, 14 Jun 2005 02:01:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: stack corruption? Message-ID: <20050614020138.GA19453@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20050614014520.GG24814@keyslapper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050614014520.GG24814@keyslapper.net> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00125.txt.bz2 On Mon, Jun 13, 2005 at 09:45:20PM -0400, Louis LeBlanc wrote: > This might be a bit of a trivial question, but I am having trouble > with stack corruption. > > I started seeing this after I began using gcc 3.3 with the -ggdb -g3 > flags to try to provide more detailed info for gdb. Can anyone tell > me how these flags change the executable? > > Without the -ggdb switch, I don't get any debugging symbols at all. > > Anyone have any ideas what else I should be looking at? Stack corruption in your program, or in GDB? Neither should change the generated code at all. -g3 adds macro debugging information. -- Daniel Jacobowitz CodeSourcery, LLC