This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: stack corruption?
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sources dot redhat dot com
- Date: Mon, 13 Jun 2005 22:01:38 -0400
- Subject: Re: stack corruption?
- References: <20050614014520.GG24814@keyslapper.net>
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