aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-11-05 15:30:35 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-11-05 15:30:35 +0000
commit29e0a0623d53e0c91dfd93a364ba01475a72f97f (patch)
tree3431e65bb3feae807b8a0e70490a97e5e3eddb25
parent8af580fccd972d75c836f13421df359b4aff0cb4 (diff)
downloadgdb-29e0a0623d53e0c91dfd93a364ba01475a72f97f.zip
gdb-29e0a0623d53e0c91dfd93a364ba01475a72f97f.tar.gz
gdb-29e0a0623d53e0c91dfd93a364ba01475a72f97f.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/coffread.c9
2 files changed, 6 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fe9c870..d177db0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 15f617b..0b83229 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -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);