From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26585 invoked by alias); 20 Apr 2010 19:29:19 -0000 Received: (qmail 26577 invoked by uid 22791); 20 Apr 2010 19:29:19 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SARE_MSGID_LONG45,SPF_HELO_PASS,TW_BJ,TW_YM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Apr 2010 19:29:15 +0000 Received: from kpbe20.cbf.corp.google.com (kpbe20.cbf.corp.google.com [172.25.105.84]) by smtp-out.google.com with ESMTP id o3KJTBTA031166 for ; Tue, 20 Apr 2010 21:29:11 +0200 Received: from pwj7 (pwj7.prod.google.com [10.241.219.71]) by kpbe20.cbf.corp.google.com with ESMTP id o3KJT1kB009203 for ; Tue, 20 Apr 2010 12:29:10 -0700 Received: by pwj7 with SMTP id 7so6340493pwj.2 for ; Tue, 20 Apr 2010 12:29:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.247.17 with HTTP; Tue, 20 Apr 2010 12:29:08 -0700 (PDT) In-Reply-To: References: <20100416071343.DF64E84396@ruffy.mtv.corp.google.com> Date: Tue, 20 Apr 2010 19:29:00 -0000 Received: by 10.141.188.32 with SMTP id q32mr6355942rvp.183.1271791748889; Tue, 20 Apr 2010 12:29:08 -0700 (PDT) Message-ID: Subject: Re: [RFA] [2/2] .debug_gdb_scripts: defer main symfile auto-loading From: Doug Evans To: tromey@redhat.com Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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: 2010-04/txt/msg00635.txt.bz2 On Tue, Apr 20, 2010 at 12:19 PM, Tom Tromey wrote: >>>>>> "Doug" =3D=3D Doug Evans writes: > > Doug> So this patch defers auto-loading of scripts in the main symfile > Doug> at startup until after ./.gdbinit has been sourced. > > This approach means that disabling auto-loading in ./.gdbinit will not > work. =A0This seems like something that ought to be documented, at least. Or it could be done differently, e.g. set some other flag that disabled auto-loading and not touch the user-visible one. > Doug> +/* Load any auto-loaded scripts for OBJFILE. =A0*/ > Doug> + > Doug> +void > Doug> +load_auto_scripts_for_objfile (struct objfile *objfile) > Doug> +{ > Doug> + =A0auto_load_objfile_script (objfile, GDBPY_AUTO_FILE_NAME); > Doug> + =A0auto_load_section_scripts (objfile, GDBPY_AUTO_SECTION_NAME); > Doug> =A0} > > I suspect you need a dummy version of this function so that the > --disable-python case continues to work. Blech, I thought I had one. Must have been thinking of something else at the time. Thanks.