From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27331 invoked by alias); 22 May 2008 18:42:45 -0000 Received: (qmail 27323 invoked by uid 22791); 22 May 2008 18:42:45 -0000 X-Spam-Check-By: sourceware.org Received: from linux-m68k.xs4all.nl (HELO scrub.xs4all.nl) (82.95.193.92) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 May 2008 18:42:28 +0000 Received: from roman (helo=localhost) by scrub.xs4all.nl with local-esmtp (Exim 3.36 #1 (Debian)) id 1JzFk9-0005K1-00 for ; Thu, 22 May 2008 20:42:25 +0200 Date: Fri, 23 May 2008 05:00:00 -0000 From: Roman Zippel To: gdb-patches@sourceware.org Subject: [PATCH/m68k] Fix length of lea insn. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00669.txt.bz2 Hi, This patch is needed to correctly set a breakpoint in a library, otherwise gdb will put the breakpoint in the middle of the instruction and cause a segfault. bye, Roman 2008-05-22 Roman Zippel * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn. Index: m68k-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/m68k-tdep.c,v retrieving revision 1.136 diff -u -r1.136 m68k-tdep.c --- m68k-tdep.c 16 May 2008 00:27:23 -0000 1.136 +++ m68k-tdep.c 22 May 2008 18:26:53 -0000 @@ -804,7 +804,7 @@ if (op == P_LEA_PC_A5) { /* lea (%pc,N),%a5 */ - return pc + 6; + return pc + 8; } return pc;