From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8ZnIGDdRCmj9cAMAWB0awg (envelope-from ) for ; Thu, 24 Apr 2025 10:56:55 -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=aytSibkj; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5601B1E0C3; Thu, 24 Apr 2025 10:56:55 -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 B022B1E0C0 for ; Thu, 24 Apr 2025 10:56:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 569AD3858D3C for ; Thu, 24 Apr 2025 14:56:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 569AD3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1745506614; bh=CcPDqtaNND+lGjfSH51x4Ni1suQM34fthZjSdjiA4II=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aytSibkjtRAP2Qm1GM4XhOX43jvJQcH4Bi2VW4VU0E83iEgzNLJdxtTLDsr9xpqsd p6cirWBPfM6Ca1b07pi/q2ZR9PAxQ9QZNjRm1grxJIggIeEzt0D86l6KxhT8qEdHXo mS1F6tSYntUV3KEMwHNvb+LLIaFLhD5i8RewK5Ew= Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by sourceware.org (Postfix) with ESMTPS id 520433858D21 for ; Thu, 24 Apr 2025 14:56:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 520433858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 520433858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745506568; cv=none; b=QLinJypjMCP4cmO4NOqCHCOUmQlYK+weobf3R6Olycpr6eNjvVQSZIHvXoyTWuiySHSFPNhw1e9b/1qnlru/nmK48kcMGts09my6FVq+CTm1dg91lhNLiEhcxNCDvB3LMfsnjOgfDUcm8pBI4Ulg+4TKljY8LklKOtSo6PgvZN4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745506568; c=relaxed/simple; bh=9VbCo6wIYEtgTU13yYtwFX+rewCJLAPwTbeOA/QT3C0=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=FaIB0/hSB7AY4nL3l+E0FlsUEE9r6uoKksc2en3inYtwMjYE1YipElrVGbFvfGSNtK477y3R+SVZVXeqWYEaaTGyWN2+52AfCkdIXMdmbSPYPVOLst71SEbx31ejbFxhg0Fn1SCqeqWRXNZtotsI+9gplkW0hXsN/eTiihNNuCg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 520433858D21 Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-e730b8d934aso449446276.2 for ; Thu, 24 Apr 2025 07:56:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745506567; x=1746111367; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9VbCo6wIYEtgTU13yYtwFX+rewCJLAPwTbeOA/QT3C0=; b=kExwO+vH/RqzLhtm0n3KQr8KjWMfg5RjHsQZxUKmw4/dnXfH6bVKbrQJ3MgCGHpaHx v0T2+mCsJRhFw8vatuD22dv9QaZTbn86Et6rbPxFWXRmtQk+IMzBWnuYHIE4f1pKvwaw 0lJX906Em1JU8M2MSRE/c81f6SsiPJsqUaMhJWSGjj+w6nq2Ic1eu5XQ+5X/sA2XepCw aDUROyUTT6+BV0UQ1yJihM3kQ+syYv9LI6NqE3igsePNBU9Q2ppuZ8eXXjXN/zdVSJpX intDun/pRIO9+NfOKNo1bqREABP7wfNAM7ukJ0RJvAgNq50AKp103BcUxUyhIV/hIb8V 2BLg== X-Gm-Message-State: AOJu0YzKYtfhYdGQfgHg3eTArKp620EArqV8BqLbJ5Wfp9F6BsKOdquh mLbqYCF0PBGqdicIkxBxo8r0AZyMXywz3Ilg5uP6g5LeHja/CLttZSlekpTSjFElgFuOIOScRLO wlMQ5CP3/hlk3CoMtTeQ0DDKGl6cNmRoK X-Gm-Gg: ASbGncveGMSsFLUs+KCGjfifhCCNBQ1YT/iSJzHgQ967BNWeGtAuW1E3tDeGD8JNTA8 gfk6Gjh6H/v9ysU2j3a2wrAZqP673jelyJad9CraP1lk22pYp5iX7wrnhyqT4rhqdAYAiUQP4YE Ck5xvoBNbyrlNNSbMFsCsoNA== X-Google-Smtp-Source: AGHT+IEcgOu/0oL6AH1w6UmauTYQvkACitJmwAUDzVB4mAwmQJwvIVWPcJ/uOfNXnNrFs0qD3eKKZD3diagZIkmjU3E= X-Received: by 2002:a05:6902:2a8d:b0:e72:e0c4:fc5f with SMTP id 3f1490d57ef6-e73036038e4mr3787677276.34.1745506567571; Thu, 24 Apr 2025 07:56:07 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 24 Apr 2025 18:54:31 +0200 X-Gm-Features: ATxdqUG3vgsAkoK0XLDtxcCiMPTA6TzyS3WQfzzBMpQGvq0Idy9eputAaminpso Message-ID: Subject: 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" 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.