Subject: bug#21528: 25.0.50; gud tries to guess what file we're debugging, which can take a long time

From: Eli Zaretskii <[email-masked]>
Date: Mon, 21 Sep 2015 10:59:16 +0300

> From: Dima Kogan <[email-masked]>
> Cc: [email-masked]
> Date: Mon, 21 Sep 2015 00:39:13 -0700
> 
> The current heuristic assumes that both
> 
> 1. The program we're debugging lives in the current directory
> 2. The program is executable
> 
> 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"?