From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26646 invoked by alias); 15 Mar 2004 18:50:30 -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 26633 invoked from network); 15 Mar 2004 18:50:29 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 15 Mar 2004 18:50:29 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i2FIoT07012908 for ; Mon, 15 Mar 2004 13:50:29 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i2FIoTS32684 for ; Mon, 15 Mar 2004 13:50:29 -0500 Received: from localhost.localdomain (vpn50-70.rdu.redhat.com [172.16.50.70]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i2FIoSnU027386 for ; Mon, 15 Mar 2004 13:50:28 -0500 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.10/8.12.10) with SMTP id i2FIoNcG017316 for ; Mon, 15 Mar 2004 11:50:23 -0700 Date: Mon, 15 Mar 2004 18:50:00 -0000 From: Kevin Buettner To: gdb-patches@sources.redhat.com Subject: [PATCH] Minor change to FR-V prologue scanner Message-ID: <20040315115022.0c837c37@saguaro> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03.o/txt/msg00321.txt Message-ID: <20040315185000.__lZ_nLO7NzODTvffCh-XYaKg8jY3mEebcLmIUk07CQ@z> I've just committed the patch below... * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan, but not via a call to error(), when unable to read memory. Index: frv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.c,v retrieving revision 1.77 diff -u -p -r1.77 frv-tdep.c --- frv-tdep.c 15 Mar 2004 18:31:37 -0000 1.77 +++ frv-tdep.c 15 Mar 2004 18:43:46 -0000 @@ -511,7 +511,13 @@ frv_analyze_prologue (CORE_ADDR pc, stru /* Scan the prologue. */ while (pc < lim_pc) { - LONGEST op = read_memory_integer (pc, 4); + char buf[frv_instr_size]; + LONGEST op; + + if (target_read_memory (pc, buf, sizeof buf) != 0) + break; + op = extract_signed_integer (buf, sizeof buf); + next_pc = pc + 4; /* The tests in this chain of ifs should be in order of