This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Simple patch for x86-64 (can go to 5.2?)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Michal Ludvig <mludvig at suse dot cz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 26 Apr 2002 20:36:14 -0400
- Subject: Re: [RFA] Simple patch for x86-64 (can go to 5.2?)
- References: <3CC96A2D.5000203@suse.cz>
> This patch is a really simple one without any side-effects. The problem is, that gcc for x86-64 by default has -fomit-frame-pointer switched on when optimalization is requested. People don't know it and are complaining that (diplomaticaly said) "gdb doesn't work" (depending on their attitude :-). The only thing this patch does is, that it prints a note, when x86_64_skip_prologue doesn't see "push %rbp" as the very first instruction of a given function. The note is printed only once. That's all. I'd like to see it in 5.2 to teach people that they should explicitly use -fno-omit-frame-pointer when compiling a code for debugging. Can I commit? I'll remove this note as soon as I fix dwarf2 reader to handle even optimized code.
>
> 2002-04-26 Michal Ludvig <mludvig@suse.cz>
> * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
> code without frame pointers.
Sigh (you've figured out the one thing that will make me delay a release :-)
Yes, I've committed it (can you please create a bug report explaining
the warning message).
Andrew