From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1800 invoked by alias); 14 Dec 2011 00:18:19 -0000 Received: (qmail 1792 invoked by uid 22791); 14 Dec 2011 00:18:17 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_FD X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 00:18:04 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 8DBB41C01A11; Wed, 14 Dec 2011 01:18:02 +0100 (CET) X-Auth-Info: 6/OdGS0kPWE2+ulmSTkKQ+1NJtDvKdBf1yiLzpE2pPE= Received: from igel.home (ppp-93-104-129-131.dynamic.mnet-online.de [93.104.129.131]) by mail.mnet-online.de (Postfix) with ESMTPA id 448EF1C00046; Wed, 14 Dec 2011 01:18:02 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id E7F80CA29C; Wed, 14 Dec 2011 01:18:01 +0100 (CET) From: Andreas Schwab To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [RFC/WIP PATCH 02/14] Mask software breakpoints from memory writes too References: <20111128153742.17761.21459.stgit@localhost6.localdomain6> <201112062007.46352.pedro@codesourcery.com> <201112132132.41317.pedro@codesourcery.com> X-Yow: Make me look like LINDA RONSTADT again!! Date: Wed, 14 Dec 2011 02:08:00 -0000 In-Reply-To: <201112132132.41317.pedro@codesourcery.com> (Pedro Alves's message of "Tue, 13 Dec 2011 21:32:40 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2011-12/txt/msg00432.txt.bz2 Pedro Alves writes: > On Tuesday 13 December 2011 21:24:24, Andreas Schwab wrote: >> Pedro Alves writes: >> >> > 2011-12-06 Pedro Alves >> > >> > gdb/ >> > * breakpoint.c (breakpoint_restore_shadows): Rename to ... >> > (breakpoint_xfer_memory): ... this. Change prototype. Handle >> > memory writes too. >> > * breakpoint.h (breakpoint_restore_shadows): Delete. >> > (breakpoint_xfer_memory): Declare. >> > * mem-break.c (default_memory_insert_breakpoint) >> > (default_memory_remove_breakpoint): Use target_write_raw_memory. >> > (memory_xfer_partial): Rename to ... >> > (memory_xfer_partial_1): ... this. Don't mask out breakpoints >> > here. >> > (memory_xfer_partial): New. >> > (target_write_raw_memory): New. >> > * target.h (target_write_raw_memory): New. >> >> That completely breaks gdb on powerpc. Breakpoints cause gdb to infloop. > > Got a backtrace showing the loop? It'd be really helpful. This is repeated endlessly with stop_pc never advancing: infrun: proceed (addr=0xf7fe26b8, signal=0, step=0) infrun: resume (step=0, signal=0), trap_expected=0, current thread [process 26306] at 0xf7fe26b8 infrun: wait_for_inferior () infrun: target_wait (-1, status) = infrun: 26306 [process 26306], infrun: status->kind = stopped, signal = SIGTRAP infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7fdb5a0 bpstat_what: bp_shlib_event infrun: BPSTAT_WHAT_SINGLE infrun: no stepping, continue infrun: resume (step=1, signal=0), trap_expected=1, current thread [process 26306] at 0xf7fdb5a0 infrun: prepare_to_wait infrun: target_wait (-1, status) = infrun: 26306 [process 26306], infrun: status->kind = stopped, signal = SIGTRAP infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7fdb5a0 bpstat_what: bp_shlib_event infrun: BPSTAT_WHAT_SINGLE infrun: no stepping, continue Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."