From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30442 invoked by alias); 25 Sep 2013 00:31:10 -0000 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 Received: (qmail 30432 invoked by uid 89); 25 Sep 2013 00:31:10 -0000 Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com) (209.85.216.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 25 Sep 2013 00:31:10 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f177.google.com Received: by mail-qc0-f177.google.com with SMTP id x12so3635832qcv.36 for ; Tue, 24 Sep 2013 17:31:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fxgZDROIf20g0QXIiVGLa2p2n+82mNbqY/QfmJSpTbc=; b=g88CvDT2L59FLbNNEwMinq/YdJOtcnNIELZylc7XbbGdldcNcU9yPZ3xGSgFatW4U0 T2Z2kQXesvV0P7XxwvWD/GbwMq6GIiHSyTF3JMtvPg0XqTqTTaSM65J1Gfao5vcRDAoH b+mneAqwVa5oStYK5aAPioB3n6wk+qjGqHOLyr3RkI2n3y1OZWlp4Q4rrXOHE/PX5wI+ QMlbbSAhkFCr2OaMtkVosofsyjaA1jxcq44JsoJdjW76wqiShimCIK+d+94qCdnlYNYR 5NURJVm2cv3IR4GzM1dAimHfpStPp9aR4o0vQYJVytna7W7d7/cMjkatCfAZlBSRmnCi TdNQ== X-Gm-Message-State: ALoCoQmjal3rWgowVY4qxcCh1s1Lrv/Fh/Io19FwKZ+1ecnpNfvwyqjnG3LACNfHRhSDMVXnsIm0fl9QyBQYTozPy9bAUE71Up6o431CTtPS07goMn0dPUTNtg8DqzivOLnwaeU2Dw/O9xuD1IEJLvWXKDB5RsT8f5gSHSdDZslhvEzvW+CzCgDKO8iPCiYEq0eJbV2tcxMJhhmkJd/8QL0D4eigziTyFA== MIME-Version: 1.0 X-Received: by 10.224.53.202 with SMTP id n10mr34394491qag.64.1380069067867; Tue, 24 Sep 2013 17:31:07 -0700 (PDT) Received: by 10.229.202.129 with HTTP; Tue, 24 Sep 2013 17:31:07 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Sep 2013 00:31:00 -0000 Message-ID: Subject: Re: [RFA, doc RFA] Add "set debug symfile on". From: Doug Evans To: gdb-patches , Eli Zaretskii Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00885.txt.bz2 On Tue, Sep 24, 2013 at 5:25 PM, Doug Evans wrote: > Hi. > > This patch adds a new debugging option: set debug symfile on > > For now it logs all calls through the symfile functions. > > Regression tested on amd64-linux. > > Ok to check in? > > 2013-09-24 Doug Evans > > New option "set debug symfile on". > * NEWS: Mention "set debug symfile". > * Makefile.in (SFILES): Add symfile-debug.c. > (COMMON_OBS): Add sumfile-debug.o. > * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the > objfile's symbol functions. > * objfiles.h (objfile_set_sym_fns): Declare. > * dwarf2read.c (dw2_map_matching_symbols): Update signature. > * psymtab.c (map_matching_symbols_psymtab): Update signature. > * symfile-debug.c: New file. > * symfile.c (sym_fns_ptr): Delete. Replace with ... > (registered_sym_fns): ... this. > (symtab_fns): Update. > (syms_from_objfile_1): Use objfile_set_sym_fns to set the objfile's > symbol functions. > (reread_symbols): Ditto. > (add_symtab_fns): New arg "flavour". All callers updated. > (find_sym_fns): Rewrite to use new sym_fns registry. > * symfile.h (struct quick_symbol_functions): Reorg arg list of > map_matching_symbols so objfile is first. > (struct sym_fns): Delete member "sym_flavour". All uses updated. > Add "objfile" argument to sym_read_linetable. All uses updated. > (add_symtab_fns): Update prototype. > * symtab.c (domain_name, search_domain_name): New functions. > * symtab.h (domain_name, search_domain_name): Declare. > > doc/ > * gdb.texinfo (Debugging Output): Document set/show debug symfile. Oh. Also tested with --enable-targets=all