2003-11-05 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 5 Nov 2003 15:30:35 +0000 (15:30 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Wed, 5 Nov 2003 15:30:35 +0000 (15:30 +0000)
       * coffread.c (coff_symtab_read): Remove passing of info parameter
       to prim_record_minimal_symbol_and_info.

gdb/ChangeLog
gdb/coffread.c

index fe9c870a1f840bdd9da7e27c55a5b5f7f5bb5275..d177db0ecb2a6988c205a4409d80aa98a8306be7 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
+
+       * coffread.c (coff_symtab_read): Remove passing of info parameter
+       to prim_record_minimal_symbol_and_info.
+
 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
 
        * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
index 15f617bca32d2440bba50c1edddc338757d96186..0b832299897d2fcb0bfb43fb2ef10b67811e8600 100644 (file)
@@ -926,15 +926,8 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
            if (cs->c_name[0] != '@' /* Skip tdesc symbols */ )
              {
                struct minimal_symbol *msym;
-
-               /* FIXME: cagney/2001-02-01: The nasty (int) -> (long)
-                   -> (void*) cast is to ensure that that the value of
-                   cs->c_sclass can be correctly stored in a void
-                   pointer in MSYMBOL_INFO.  Better solutions
-                   welcome. */
-               gdb_assert (sizeof (void *) >= sizeof (cs->c_sclass));
                msym = prim_record_minimal_symbol_and_info
-                 (cs->c_name, tmpaddr, ms_type, (void *) (long) cs->c_sclass,
+                 (cs->c_name, tmpaddr, ms_type, NULL,
                   sec, NULL, objfile);
                if (msym)
                  COFF_MAKE_MSYMBOL_SPECIAL (cs->c_sclass, msym);