From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cTWyNnt9C2gcCQUAWB0awg (envelope-from ) for ; Fri, 25 Apr 2025 08:18:03 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=sSCCHurY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D02901E10E; Fri, 25 Apr 2025 08:18:03 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 015671E0C0 for ; Fri, 25 Apr 2025 08:18:02 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 724ED3858417 for ; Fri, 25 Apr 2025 12:18:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 724ED3858417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1745583482; bh=RFSiS7DXVutrFm7tNemOtNSiWe0klz9wDI8Mi/7GLq4=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=sSCCHurYiW0Cx83Xf8mNXXRAX0BVuCQot6fLZa0fP/nlTs4PpIFLVxr4nKNXSRFQc dGs4gUBBmIBRetyFmp5jC7j5Vq7bEJOnDszFW//BbxXWzdtkbRWSeOC9opvROpntmv 3eI/UfN2VaPf5lGaV3ofndP2BwZO8FzijzWX8r3U= Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by sourceware.org (Postfix) with ESMTPS id E595E3858D38 for ; Fri, 25 Apr 2025 12:17:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E595E3858D38 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E595E3858D38 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745583437; cv=none; b=htJsQGfo+26eiqck/elBioK/PThajdrpRbTV/+xKPrAlwSXjSmpwyz3A/3Pj71QbTx6ff3XTqs9Jj5S76MV9eqdmoeLe0T68w8aOwaI/OuWkfX7hTWpERK2HsAfaSUhRaUDOnsI+GSL5F2nYrKHhyDEiZ+5O401elO9subXOvUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745583437; c=relaxed/simple; bh=lLXCDZ/jfKPlqlhxFJChuKgeL/sFyP5WQ3hTqd7tIAs=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=tpq3qAE3W91YsmgINhM3eiFUjRuFupu88oqWSLcDlt5Kwhtm1L0S0O3Pd9T2lwS1slKAxZp51Qa9HPvigON89Hw5GI8sxVMCPJWMHF176uamq037VeSF699+K/6QKXyyjbQYS+J69WqDzdXJ9ztojbaUg3MzIfaKAXWdtMW8x5E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E595E3858D38 Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e6df4507690so1772450276.0 for ; Fri, 25 Apr 2025 05:17:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745583436; x=1746188236; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lLXCDZ/jfKPlqlhxFJChuKgeL/sFyP5WQ3hTqd7tIAs=; b=HmP4YY3A9aC2gfeCOt0GejqRM7iSKc+cMNRFDhA2LiiRtwdq/0/vk8Gy/OzpunDZQx QzQ9/B5Dtzj6TsRoydKb66oGtENYa8JXYldCnN+4e78gHBiCMGJITnqzPfF2+QBYs3qo fgp6pZPXr7Vd73zvAQXDMVEqidUnA/PG3Oa5p+fR3dsuheRiX1VCZHcoJFWUMSK7AFyH rfLQIwUgXMlPy9Ho68GXrSNNDTtAbAJ5LPyObou3l1GkBUTNVtWP32602ISlebLY1327 Q7YX9ZgwaEBf98c6O2mlnYnvw89nWf/T+0OuF0kNTKFaL3G3xdcDHzf5YJDgF0BE24wC 61Vg== X-Gm-Message-State: AOJu0YwfC52eQY+lV1WloeU8nOUmMcDCxIsj5tfjr1UXBaXsGibrFSmd /rsJxVnTlll4vtUc3f+XTVey6ib9RNvB2ghiCPldMSsZzaLEI6s21JjCKk7cAl043VOKHoa2Mvx SrfMQ+ws6raWxErfaVsBqMpe4irLp52Bi X-Gm-Gg: ASbGncvjgRUCkgQB1D99MlovkUN1iztFCgTTbpOJ3L8jZ2znZyJGBfdtlddttQxG8eH 6Tb4mJ0a2e2V5zEF2Q7ii5J7gKSCKYNzHD6l00bv4FPP+/l0yk3bnoqe4Yt2SqtQWlI7xFa9uLu z70BWqeOYEbPP1Pl/B1LICWYJJfiAWQdfm X-Google-Smtp-Source: AGHT+IEl7H9B9bZMPh74RVq4UIGM1CffYHNlsCJ8fglCQRUxq+uphqjVdVNhMqHyV0NZuccAPlUbtnCXtzCUcNx+Qc0= X-Received: by 2002:a05:6902:1ac1:b0:e57:3e83:517e with SMTP id 3f1490d57ef6-e7305166fa6mr7454988276.5.1745583436259; Fri, 25 Apr 2025 05:17:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 25 Apr 2025 16:15:40 +0200 X-Gm-Features: ATxdqUEQpMWq0cv6fwgCZl77IEKDDeV2N73-uncvGs3rB1RoSUQqASqk7NZCiZA Message-ID: Subject: Re: gdb behaviour change under software watchpoints? To: gdb Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: K via Gdb Reply-To: K Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" To be clear, I'm not reporting my own bug! I'm pointing out some inconsistent behaviour of gdb and asking whether it is a feature of software watchpoints or indeed watchpoint use in general. On Thu, 24 Apr 2025 at 18:54, K wrote: > A bug in my software is revealed by a debug build which eventually calls > abort(). gdb sees and reports this and I can do a backtrace and find a > memory location I need to investigate. > then I make a run with a watchpoint on said memory location which has to > be software since it's a non-host binary running under qemu. > not only does the watchpoint not get triggered despite ensuring binary is > being loaded to the same address, but gdb only reports that the process has > exitted with an error code - no memory to examine, no backtrace. > > the former is mysterious but the latter is annoying - is this behaviour > necessitated by setting watchpoints? > I have remote access to a machine of the target variety but I would ask > first whether I can expect the behaviour to return to normal when using a > hardware watchpoint. No point is going down a dead end... > Thanks. > > >