This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: Avoid calling XXX_skip_prologue for assembly code
- To: ac131313 at cygnus dot com (Andrew Cagney)
- Subject: Re: RFC: Avoid calling XXX_skip_prologue for assembly code
- From: Fred Fish <fnf at gofish dot ninemoons dot com>
- Date: Thu, 11 Oct 2001 19:22:06 -0700 (MST)
- Cc: jimb at cygnus dot com (Jim Blandy), fnf at ninemoons dot com, gdb-patches at sources dot redhat dot com
- Reply-To: fnf at ninemoons dot com
> Does anyone know the motivation behind the patch?
I ran into a target for which the skip_prologue code did not behave
correctly for assembly language functions. The details are hazy now
but as I recall the skip prologue function always returned PC+2 in
such cases, instead of just returning PC. In looking at some of the
other XXX_skip_prologue functions it appeared to me that they would
have the same problems under similar conditions. Ideally we would
just fix all the skip_prologue functions to do the right thing, but then
I began to question why we were even calling skip_prologue anyway on
functions that were already known to have been written in assembly
language.
-Fred