unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21528@debbugs.gnu.org, Dima Kogan <dima@secretsauce.net>
Subject: bug#21528: 25.0.50; gud tries to guess what file we're debugging, which can take a long time
Date: Mon, 24 Jan 2022 14:56:59 +0100	[thread overview]
Message-ID: <87ilu96xuc.fsf@gnus.org> (raw)
In-Reply-To: <83io74nqy3.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Sep 2015 10:59:16 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> Both of those could be true, but probably not all that often. Especially
>> the "program is executable part" easily fails for interpreted languages.
>
> How about bypassing this search in 2 situations:
>
>  . the debuggee is on a remote system
>  . the debugger being invoked is for an interpreted language
>
> Would that be "good enough"?

I don't think it's all that useful to separate interpreted vs compiled
here -- it'll be slow (or not) in any case (and interpreted files are
normally executable).

So I've just made it not do the loop if it's on a remote system, and
there's a lot of files there in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2022-01-24 13:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21  2:50 bug#21528: 25.0.50; gud tries to guess what file we're debugging, which can take a long time Dima Kogan
2015-09-21  7:04 ` Eli Zaretskii
2015-09-21  7:39   ` Dima Kogan
2015-09-21  7:59     ` Eli Zaretskii
2015-09-21  9:03       ` Dima Kogan
2015-09-21  9:43         ` Eli Zaretskii
2015-09-21 18:24           ` Dima Kogan
2022-01-24 13:56       ` Lars Ingebrigtsen [this message]

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=87ilu96xuc.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=21528@debbugs.gnu.org \
    --cc=dima@secretsauce.net \
    --cc=eliz@gnu.org \
    /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).