From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24523 invoked by alias); 5 Dec 2008 00:18:48 -0000 Received: (qmail 24512 invoked by uid 22791); 5 Dec 2008 00:18:47 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.17.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Dec 2008 00:18:04 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.1/8.13.1) with ESMTP id mB50I1fH028556 for ; Fri, 5 Dec 2008 00:18:01 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mB50I0qr4112408 for ; Fri, 5 Dec 2008 01:18:00 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mB50I0Wa031481 for ; Fri, 5 Dec 2008 01:18:00 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id mB50I05V031478; Fri, 5 Dec 2008 01:18:00 +0100 Message-Id: <200812050018.mB50I05V031478@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 5 Dec 2008 01:18:00 +0100 Subject: Re: [RFA] dummy frame handling cleanup, plus inferior fun call signal handling improvement To: pedro@codesourcery.com (Pedro Alves) Date: Fri, 05 Dec 2008 00:18:00 -0000 From: "Ulrich Weigand" Cc: dje@google.com (Doug Evans), gdb-patches@sourceware.org In-Reply-To: <200812042242.53482.pedro@codesourcery.com> from "Pedro Alves" at Dec 04, 2008 10:42:53 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-12/txt/msg00082.txt.bz2 Pedro Alves wrote: > On Thursday 04 December 2008 22:32:12, Doug Evans wrote: > > In the original code, is there a case when stop_pc != registers.pc? > > Here, > > > (gdb) set $pc = 0xf00 > (gdb) call func() Huh. But that case is in fact *broken*, because GDB will use stop_pc incorrectly: for example, the check whether we are about to continue at a breakpoint will look at stop_pc, but then continue at $pc. Also, if we issue a "step", the step range will be set according to the line at stop_pc, but we will actually continue at $pc ... It seems to me just about every current user of stop_pc *really* wants to look at regcache_read_pc (get_current_regcache ()) ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com