From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Debugging M-x gdb Date: Sun, 26 Mar 2023 20:09:31 +0200 Message-ID: <871qlbfkpw.fsf@ledu-giraud.fr> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30534"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 26 20:10:45 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pgUpI-0007eh-SI for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Mar 2023 20:10:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgUoJ-0001XF-6b; Sun, 26 Mar 2023 14:09:43 -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 1pgUoE-0001Wz-HY for emacs-devel@gnu.org; Sun, 26 Mar 2023 14:09:38 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgUoB-0004dC-Vt for emacs-devel@gnu.org; Sun, 26 Mar 2023 14:09:38 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=y7Wur7em KzmvpBO9Egy28tGhK+29trmvn/gjI6WOkEk=; h=date:subject:to:from; d=ledu-giraud.fr; b=zGD/vp5rs1T0hqIpWhsdOMYRoiaB1x752jS0F4l5pRxfEsLAyW d19bTUFTYzJKv8M9SNBK9W9zjGbmVbAH7DAA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=y7Wur7emKzmvpBO9 Egy28tGhK+29trmvn/gjI6WOkEk=; h=date:subject:to:from; d=ledu-giraud.fr; b=Tf1F4czhGNbjA0Fq1cZSjrupycUO/SqvM6igStuHdY9vyI6Ng/ DF1mKCuo9kkMpTan+eNwnMiqbJXaDmYH26CDwKwBOUyDoKT1fioJvbiD9ev+rxomReo9NC 7S1G9zAI0Nu0iZujHUQIg932hQV5ZgJNApIyoyaXwNmAJGVSWS7Ze8t5O6fQuvRFscNAc6 +qcUOETeNSK/0Z5I4i5p4oTpFVLlEfaKaIfSggWk9b+ksyFBOquE0IE5GwGP0ejNOowKge G5Q8256eAww5MOP2DDSo6IRGEsAzKCQHlmE64wY+sKz0eCkKWl/U07mZXaKHRsxNeNEmhk +yjp1+sSHhuA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 6ede2590 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 26 Mar 2023 20:09:32 +0200 (CEST) Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304775 Archived-At: Hi, I don't know if I should file a bug report for this so I'm trying here. Whenever I try to debug Emacs with M-x gdb, I see the following behaviour. In the *gud-emacs* buffer, I enter "set args -Q" and then "run"... then I exit the debugged Emacs and now the Emacs from where I called (gdb) starts taking a full CPU. I had to enter "quit" into the *gud-emacs* buffer to stop this (return to normal CPU usage). I'd really like to debug this issue but don't really where to start. I have tried to profile-start/profile-report but I don't get much clue out of it. How could I proceed? -- Manuel Giraud