From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7615 invoked by alias); 6 May 2019 19:30:43 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 87183 invoked by uid 89); 6 May 2019 19:30:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*Ad:U*gdb, outdated, H*r:sk:gdb@sou, coherent X-HELO: mail-wm1-f44.google.com Received: from mail-wm1-f44.google.com (HELO mail-wm1-f44.google.com) (209.85.128.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 May 2019 19:30:21 +0000 Received: by mail-wm1-f44.google.com with SMTP id o189so6296749wmb.1 for ; Mon, 06 May 2019 12:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vPkyetEmn+kyzvHYpK/HYwNSz8VDRcswSJYE/z8OoOs=; b=SaBVEcMMPqK1t3XZj0OGIaExdym0HtR0WQgEGz3duWTMlKatDKRbJv1wfHtv2OiQIn Gi0Adk4j2HWEJ9sZD3s3rbM5gpyrpBBL+jkYMVAjYGODsT6bavgGlpUxwY+bdoZrjmqR SqIkBCFq/OG6RbyUil2SISxYrjOo6FvQGRIzjoRYNTYV5mF7Cj8cJt14gZNb7FXuJVia 75LhQ9FdVviSecMyeBj6jirmPHMdJ2paetsp4WfLCLnU6vpJUUJslIptCJcqzDJmK5Or 4fga2BZ4NCA6z4DR2eqWruKhg4OZpZbmb/6BKrS0+oeHCYSmv2EWKto474snqKUMvsy6 fgjw== MIME-Version: 1.0 From: Xiaozhu Meng Date: Mon, 06 May 2019 19:30:00 -0000 Message-ID: Subject: icache-dcache coherence on ARM To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00011.txt.bz2 Hi, I am reading gdb's source code to hopefully get answers for a question that I have in my other project. On ARM, the architecture does not guarantee that icache and dcache are coherent. When GDB writes a software breakpoint into the inferior's address space, is it possible that the inferior executes outdated code in icache and thus miss the software breakpoint? I try to search around the gdb code base to understand whether GDB flushes icache or not, but could not find answers. I appreciate any feedback! Thanks, --Xiaozhu