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#50622: 27.2; GDB lists source code infinitely after setting a breakpoint Date: Thu, 16 Sep 2021 18:29:00 +0300 Message-ID: <83y27w8rpf.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50622@debbugs.gnu.org To: Luis =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mart=C3=ADnez?= Vega Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 16 17:32:40 2021 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 1mQtNQ-0008gq-6G for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 17:32:40 +0200 Original-Received: from localhost ([::1]:38218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQtNO-000445-Qk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 11:32:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQtKu-000106-Br for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 11:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQtKs-0001v8-3h for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 11:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQtKr-0005jh-Vm for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 11:30:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Sep 2021 15:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50622 X-GNU-PR-Package: emacs Original-Received: via spool by 50622-submit@debbugs.gnu.org id=B50622.163180615821979 (code B ref 50622); Thu, 16 Sep 2021 15:30:01 +0000 Original-Received: (at 50622) by debbugs.gnu.org; 16 Sep 2021 15:29:18 +0000 Original-Received: from localhost ([127.0.0.1]:56253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQtK9-0005iR-Un for submit@debbugs.gnu.org; Thu, 16 Sep 2021 11:29:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQtJz-0005hP-Rv for 50622@debbugs.gnu.org; Thu, 16 Sep 2021 11:29:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54378) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQtJt-00014J-Oc; Thu, 16 Sep 2021 11:29:01 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1361 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 1mQtJt-0001SZ-Bi; Thu, 16 Sep 2021 11:29:01 -0400 In-Reply-To: (sebastian-440@live.com) 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" Xref: news.gmane.io gmane.emacs.bugs:214477 Archived-At: > Date: Thu, 16 Sep 2021 01:36:10 -0500 > From: Luis Sebastián Martínez Vega > > > The following was executed on emacs without customizations. > First, I opened a C program, compiled it with the -g file, and ran > "gdb -i=mi lagrange -s input.c". Lagrange being the binary. I can > provide the files, but I've had this problem with any C program I try to > debug. After invoking gdb, I set a breakpoint, mainly: > b input.c:33 > after setting it, I get a query in the minibuffer, asking me if I wish > to make the buffer of the current file read-only (this message is > appended in the recent messages section). After choosing either yes or > no, gdb executes the list command ad infinitum, either long enough for > emacs to hang, or until I C-d the process. I think this is due to non-ASCII characters in your file names, as evidenced by this: > error in process filter: Quit [2 times] > Bad JSON object: ",", 34 > WARNING! Discarding GDB handler with token #28 > > The program is not being run. > File /home/luis/Documentos/LCC/5to Semestre/Análisis > Numérico/lagrange/"/mnt/Personal/Documentos/LCC/5to > Semestre/An\303\241lisis Num\303\251rico/lagrange/input.c" is read-only > on disk. Make buffer read-only, too? (y or n) n Does it help to set gdb-mi-decode-strings to 'utf-8'? If this doesn't help, would it be feasible for you to try the current master branch of the Emacs Git repository? I think this issue got a thorough treatment there.