From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13610 invoked by alias); 18 Aug 2012 16:11:13 -0000 Received: (qmail 13595 invoked by uid 22791); 18 Aug 2012 16:11:11 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Aug 2012 16:10:55 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id AF3691C6D50; Sat, 18 Aug 2012 12:10:54 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p4FRpev95fnm; Sat, 18 Aug 2012 12:10:54 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 7FC721C67B1; Sat, 18 Aug 2012 12:10:54 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id B3B5B14561A; Sat, 18 Aug 2012 09:10:49 -0700 (PDT) Date: Sat, 18 Aug 2012 16:11:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: GDB 7.5: Problems with the auto-load safe-path feature Message-ID: <20120818161049.GI2798@adacore.com> References: <83d32ogz3g.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83d32ogz3g.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00511.txt.bz2 > This new feature in GDB 7.5 looks like a nuisance in my (short) > experience. Same here. Very very much agreed, in fact. But I don't feel we have much of a leg to stand on, when opposing the feature. Jan and I discussed this feature quite a bit, as I recall, and came to the best compromise we could. For your own personal purposes, you can turn this feature off by default when configuring GDB. I think that the configure option is: --without-auto-load-safe-path > 2012-08-18 Eli Zaretskii > > * auto-load.c (auto_load_objfile_script): If OBJFILE specifies a > DOS/Windows-style .exe executable program, remove the .exe suffix > when generating the script file name. I think that the test should ideally be target-dependent. But short of that, how about we just try without the .exe prefix if the first attempt failed, regardless of host and/or target? In other words: 1. Try loading -gdb.gdb 2. If (1) fails, and ends with '.exe': Try loading -gdb.gdb That way, if you are cross-building a Windows GDB on GNU/Linux, and try to debug it from GNU/Linux as well, the Linux-to-Windows cross GDB would be able to pickup the gdb-gdb.gdb file automatically. -- Joel