From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: Andrey Butirsky Subject: can't 'continue' after 'next' in breakpoint's commands/end block X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 10 Jun 2021 16:44:49 -0000 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?