From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8173 invoked by alias); 16 Feb 2004 21:15:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8162 invoked from network); 16 Feb 2004 21:15:16 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 16 Feb 2004 21:15:16 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Asq5E-0004Ry-Bs for ; Mon, 16 Feb 2004 16:15:16 -0500 Date: Mon, 16 Feb 2004 21:15:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: [ob] Remove initializations of memset'd structure Message-ID: <20040216211516.GA17055@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00434.txt.bz2 This part of my previous patch is obvious. Checked in. [Yes, mst_unknown is documented to have value 0.] -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer 2004-02-16 Daniel Jacobowitz * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary initializations. --- objfiles.c 14 Feb 2004 15:46:33 -0000 1.49 +++ objfiles.c 15 Feb 2004 23:56:31 -0000 @@ -283,11 +283,6 @@ terminate_minimal_symbol_table (struct o = &objfile->msymbols[objfile->minimal_symbol_count]; memset (m, 0, sizeof (*m)); - DEPRECATED_SYMBOL_NAME (m) = NULL; - SYMBOL_VALUE_ADDRESS (m) = 0; - MSYMBOL_INFO (m) = NULL; - MSYMBOL_SIZE (m) = 0; - MSYMBOL_TYPE (m) = mst_unknown; SYMBOL_INIT_LANGUAGE_SPECIFIC (m, language_unknown); } }