Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [ob] Remove initializations of memset'd structure
@ 2004-02-16 21:15 Daniel Jacobowitz
  2004-02-17  6:54 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2004-02-16 21:15 UTC (permalink / raw)
  To: gdb-patches

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  <drow@mvista.com>

	* 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);
   }
 }


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-02-17 20:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-16 21:15 [ob] Remove initializations of memset'd structure Daniel Jacobowitz
2004-02-17  6:54 ` Eli Zaretskii
2004-02-17 14:34   ` Elena Zannoni
2004-02-17 19:12     ` Eli Zaretskii
2004-02-17 19:37       ` Elena Zannoni
2004-02-17 19:47         ` Daniel Jacobowitz
2004-02-17 20:28           ` Elena Zannoni
2004-02-17 20:44             ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox