From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GE4wMZpBwmADOgAAWB0awg (envelope-from ) for ; Thu, 10 Jun 2021 12:45:14 -0400 Received: by simark.ca (Postfix, from userid 112) id BB2A11F163; Thu, 10 Jun 2021 12:45:14 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 004831E01F for ; Thu, 10 Jun 2021 12:45:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7C11A38515E2 for ; Thu, 10 Jun 2021 16:45:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C11A38515E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1623343513; bh=4TbZbwW+2UDeTjk48cnQItdLUCSiZ2M0W+fx5risIIk=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=xCnJGlC5erKHuw6BJLH/ZlkDYGKKIfiYOIFlcnmL3unGKcratJzdZXndgo7bKqMDB YtefFbqK17ojB1i7runNvp/p7NdPWpPvwc4rf1+KWdjidEHasGlc+Q+6tYS6rV5MOI 6A2rd/PxxOQ/QFmei4iJhpeizFp6p3+XkhUMzgEc= Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id 521A338515E2 for ; Thu, 10 Jun 2021 16:44:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 521A338515E2 Received: by mail-lf1-x12f.google.com with SMTP id p17so4276036lfc.6 for ; Thu, 10 Jun 2021 09:44:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:mime-version:user-agent:to :content-language:from:subject; bh=tnKJdobxwhLwoct0jpqb039k4w2g6YZM5Fm/xveieCk=; b=f9BGp5/pD7yO2nxWUPK7q2ARh/hL69wy+FuWtx29j63MFzevua7k8EEon2ipaTr6ZN mO4PCCGFNKCmfqg05U2lTDAOjNeWFmUWdCvGrDmrHYP5oC6muQ417M53a3GMqZajMDal G54F+k2K8Hy9hW0rGkJ0vun5BbcwXWBshI79AK4y/kKWUkxDXQ5wYeDZUcevwTLazVJf gp7OCxWiyVGboEGa0yr8kdbqFQRUkxA3dJEhnD53eIg1BrdevOfezgolNo6INxuwUYJO wc3kZ7nZqaXGM0dORFY6+B5A7rV/Abda2F6D3N3MD6DirF7mIYP5QQZgN91ogpt1PueX xiXg== X-Gm-Message-State: AOAM533BCtJQtM4xEllfx118UfbL17/cTuHpd3qN3h0ZX9w4PxJTIbTr CS2A2w+yC/lgkf0r98iqTcGaJpm7HUkbPg== X-Google-Smtp-Source: ABdhPJxV6kSpfiay8/dhWOrbfMCarJlmVmldqPFooNEbK2quqrl/+n+oHu97fwJHlIjOXyuIOdfbvA== X-Received: by 2002:a19:c194:: with SMTP id r142mr2481696lff.363.1623343486833; Thu, 10 Jun 2021 09:44:46 -0700 (PDT) Received: from ?IPV6:2a02:2168:86f9:2100::502? ([2a02:2168:86f9:2100::502]) by smtp.gmail.com with UTF8SMTPSA id t83sm345741lff.181.2021.06.10.09.44.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Jun 2021 09:44:46 -0700 (PDT) Message-ID: Date: Thu, 10 Jun 2021 19:44:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Thunderbird/90.0 To: gdb@sourceware.org Content-Language: en-US Subject: can't 'continue' after 'next' in breakpoint's commands/end block Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Butirsky via Gdb Reply-To: Andrey Butirsky Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hello, I'm trying to debug KWin window manager, to not halt the session it can't be paused so I created such script to trace function calls: $ cat ~/kde/gdb-x set pagination off break KGlobalAccelImpl::x11KeyPress(xcb_key_press_event_t*) break TabBox::keyPress(int ) break /home/bam/kde/src/kde/workspace/kwin/src/tabbox/tabbox.cpp:555 commands 1-20 # FIXME: for some reason KWin halts on any stepping command here, ideas? #next continue end continue & I'm attaching to a KWin process such way: gdb attach $(pidof kwin_wayland) -x ~/kde/gdb-x The problem is I can't insert next/step and such commands in the breakpoint's 'commands' block - the process halts just after the 'next' there despite the presence of 'continue' command afterward. So I need to switch to another VT and kill gdb process to bring my session back. I'm not quite understand why it happens and what I can do with it. Any ideas?