From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63084: 30.0.50; gud: set breakpoint while program is running Date: Fri, 05 May 2023 08:53:42 +0300 Message-ID: <83bkizjpcp.fsf@gnu.org> References: <874jp3n52b.fsf@home.mail-host-address-is-not-set> <838refuqa8.fsf@gnu.org> <83wn1zt1tu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23904"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63084@debbugs.gnu.org To: tatrics@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 05 07:53:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puoNS-00060i-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 07:53:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puoNL-0007W9-U6; Fri, 05 May 2023 01:53:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puoNK-0007Vk-Dw for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 01:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puoNK-0000aM-60 for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 01:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puoNK-00043y-11 for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 01:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2023 05:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63084 X-GNU-PR-Package: emacs Original-Received: via spool by 63084-submit@debbugs.gnu.org id=B63084.168326597815608 (code B ref 63084); Fri, 05 May 2023 05:53:01 +0000 Original-Received: (at 63084) by debbugs.gnu.org; 5 May 2023 05:52:58 +0000 Original-Received: from localhost ([127.0.0.1]:52932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puoNG-00043g-5g for submit@debbugs.gnu.org; Fri, 05 May 2023 01:52:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puoNE-00043Q-Aa for 63084@debbugs.gnu.org; Fri, 05 May 2023 01:52:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puoN7-0000ZV-Op; Fri, 05 May 2023 01:52:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TxjAl4TRCJwyf/QEDILL7Dn391ricTVDvAs7nrM4DB0=; b=ZRsnmpHVAmrA xFnZXF2xGE59oAhud20Rh0RENKonHpBn4EZhTEm0+uE73T6DC/eJpXCygC1lxtqL1pUOYY7GInHwI IqMqjdK+sTy/nJL095oYz86Du9B8HRq6D6CtcqlEP7kswOZQDwmHw2UX2D13/phc51o/vxx3fNTPe /Ol+MNkCdfbAQiaNxHDcnZGOtIoXJNIwFI3E0LaxJFQ3y88XUNQuL1ZkmnvH9MaO6hMoYzhfic5dr F8aOvzlx+dMU27wJh/UL9vpjvrDpICdZvMgri2wYcUDm5c2HxWgSYvJVbzdl+zjpRoK/Eh5lmfdYj NvT9eFIzREkG9hBJtrEUVg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puoN7-0004Ws-8Y; Fri, 05 May 2023 01:52:49 -0400 In-Reply-To: <83wn1zt1tu.fsf@gnu.org> (message from Eli Zaretskii on Wed, 26 Apr 2023 12:44:29 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261060 Archived-At: Ping! Could you please answer my questions below? Knowing the answers is necessary for investigating this issue. Thanks. > Cc: 63084@debbugs.gnu.org > Date: Wed, 26 Apr 2023 12:44:29 +0300 > From: Eli Zaretskii > > > From: TatriX > > Date: Wed, 26 Apr 2023 10:48:53 +0200 > > Cc: 63084@debbugs.gnu.org > > > > Oh, sorry. I tried on a different machine, and realized one have to use "run&". > > > > So, here's what I did: > > > > $ cat main.c > > #include > > #include > > > > int main(void) { > > for (int i = 0; ; i++) { > > printf("%d\n", i); > > sleep(1); > > } > > } > > > > $ gcc -g -o break main.c > > $ emacs -Q main.c > > M-x gdb RET > > # in *gud-break*, NOTE it's "run&" > > (gdb) run& > > # in main.c > > (goto-line 6) > > (gud-break 1) ; or C-x C-a C-b > > # nothing happens > > M-: (gud-call "break 6") RET > > # breakpoint is set and process execution is paused on hitting that breakpoint > > What is the value of gdb-running and of gdb-non-stop after you "run&" > the program? > > > >