unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Luis Sebastián Martínez Vega" <sebastian-440@live.com>
Cc: 50622@debbugs.gnu.org
Subject: bug#50622: 27.2; GDB lists source code infinitely after setting a breakpoint
Date: Thu, 16 Sep 2021 18:29:00 +0300	[thread overview]
Message-ID: <83y27w8rpf.fsf@gnu.org> (raw)
In-Reply-To: <SN7PR05MB76953EB679B688CFF135C745CADC9@SN7PR05MB7695.namprd05.prod.outlook.com> (sebastian-440@live.com)

> Date: Thu, 16 Sep 2021 01:36:10 -0500
> From: Luis Sebastián Martínez Vega
>  <sebastian-440@live.com>
> 
> 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.





  reply	other threads:[~2021-09-16 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16  6:36 bug#50622: 27.2; GDB lists source code infinitely after setting a breakpoint Luis Sebastián Martínez Vega
2021-09-16 15:29 ` Eli Zaretskii [this message]
     [not found]   ` <SN7PR05MB7695D1EB6540012E213D63FDCADD9@SN7PR05MB7695.namprd05.prod.outlook.com>
2021-09-17  6:44     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y27w8rpf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=50622@debbugs.gnu.org \
    --cc=sebastian-440@live.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).