From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5554 invoked by alias); 26 Aug 2003 22:37:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5532 invoked from network); 26 Aug 2003 22:37:00 -0000 Received: from unknown (HELO hydra.ubicom.com) (4.20.168.98) by sources.redhat.com with SMTP; 26 Aug 2003 22:37:00 -0000 Received: FROM fenway.scenix.com BY hydra.ubicom.com ; Tue Aug 26 15:36:59 2003 -0700 Received: from nkelseyxp2 (NKELSEY-XP2 [192.168.1.187]) by fenway.scenix.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id RTV1W31L; Tue, 26 Aug 2003 15:36:59 -0700 Message-ID: <00f901c36c22$8fe12250$0502a8c0@scenix.com> From: "Jafa" To: References: <3F2991AA.2050400@redhat.com> <1030825211237.ZM7510@localhost.localdomain> <3F4B9A2A.6020901@redhat.com> Subject: [patch] missing case in epilogue stub detection Date: Tue, 26 Aug 2003 22:37:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00F6_01C36BE7.E36A7C90" X-Priority: 3 X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-08/txt/msg00461.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_00F6_01C36BE7.E36A7C90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-length: 561 The following patch fixes a bug where an epilogue stub isn't detected and is erroneously treated as a subroutine. Fixes step and next errors when at the end of a function for the ip2k. Mips may have suffered from the same problem but the occurrence of the code would have been rare. 2003-08-26 Nick Kelsey * infrun.c (handle_inferior_event): Bug fix in subroutine detection code regarding dealing with an epilogue stub. The previous code correctly detected the stub in all cases except where the pc is equal to the stub entry point. ------=_NextPart_000_00F6_01C36BE7.E36A7C90 Content-Type: application/octet-stream; name="infrun.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="infrun.patch" Content-length: 283 diff -r1.10 infrun.c=0A= 2449,2450c2449=0A= < if (stop_pc =3D=3D ecs->stop_func_start /* Quick test */=0A= < || (in_prologue (stop_pc, ecs->stop_func_start) &&=0A= ---=0A= > if (((stop_pc =3D=3D ecs->stop_func_start || in_prologue (stop_pc, ecs-= >stop_func_start)) &&=0A= ------=_NextPart_000_00F6_01C36BE7.E36A7C90--