From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24023 invoked by alias); 17 Aug 2002 01:23:34 -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 24016 invoked from network); 17 Aug 2002 01:23:32 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 17 Aug 2002 01:23:32 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9725B3D59; Fri, 16 Aug 2002 21:23:30 -0400 (EDT) Message-ID: <3D5DA592.8090009@ges.redhat.com> Date: Fri, 16 Aug 2002 18:23:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] enable software single step on alpha-osf References: <20020718203205.GB26990@gnat.com> <3D4DBBC8.5000906@ges.redhat.com> <20020805184920.GC892@gnat.com> <3D5D323A.2030801@ges.redhat.com> <20020816182141.GJ906@gnat.com> <20020816230524.GT906@gnat.com> <3D5D875F.6050405@ges.redhat.com> <20020817005803.GH911@gnat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00481.txt.bz2 > Following Andrew's suggestion, here is a revised patch to provide > software single stepping on alpha-osf1, plus fix all the quirks that > appeared after the switch. > > I know the alpha-osf1-tdep.c change is approved, but since I haven't > committed it yet, I am including it in this patch for completeness. > > No regression on alpha-osf1 (SW single step enabled) and on x86-linux > (sw single step disabled): Yep, testing x68 linux is a good idea. > 2002-07-18 Joel Brobecker > > * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately, > procfs appears to be broken when debugging on multi-processor > machines. So enable software single stepping in order to avoid > using the procfs interface to do next/step operations, using > internal breakpoints instead. > > * infrun.c (handle_inferior_event): Readjust the stop_pc by > DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to > make this pc address equal to the value it would have if the > system stepping capability was used. Also set a new flag used > to ensure that we don't readjust the PC one more time later. > > * breakpoint.c (bpstat_stop_status): Do not adjust the PC > address by DECR_PC_AFTER_BREAK when software single step is > in use for this architecture, as this has already been taken > care of in handle_inferior_event(). > Yes and thanks. Finally something in wfi that I understand! Andrew