From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fred Fish To: ac131313@cygnus.com (Andrew Cagney) Cc: jimb@cygnus.com (Jim Blandy), fnf@ninemoons.com, gdb-patches@sources.redhat.com Subject: Re: RFC: Avoid calling XXX_skip_prologue for assembly code Date: Thu, 11 Oct 2001 19:23:00 -0000 Message-id: <200110120222.f9C2M6t24897@gofish.ninemoons.com> References: <3BC61FD7.5040504@cygnus.com> X-SW-Source: 2001-10/msg00163.html > 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