+2001-03-01 Andrew Cagney <ac131313@redhat.com>
+
+ * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
+ * os9kread.c (os9k_process_one_symbol): Add assert to detect
+ ``loses if sizeof (char *) > sizeof (int)''.
+
2001-03-01 Andrew Cagney <ac131313@redhat.com>
* gdb_assert.h: Document pragmatics behind gdb_assert's case.
mipsm3-nat.o: mipsm3-nat.c $(defs_h) $(inferior_h) $(regcache_h)
+# os9kread assumes that sizeof(char*) <= sizeof(int). This looses on
+# 64 bit targets where often, sizeof(int)=4 but sizeof(char*)=9.
os9kread.o: os9kread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
- $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
- objfiles.h stabsread.h symfile.h $(symtab_h) \
- target.h gdb_string.h
+ $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) \
+ language.h objfiles.h stabsread.h symfile.h $(symtab_h) \
+ target.h gdb_string.h
+ $(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<
mem-break.o: mem-break.c $(defs_h)
#include "defs.h"
#include "gdb_string.h"
+#include "gdb_assert.h"
#include <stdio.h>
#if defined(USG) || defined(__CYGNUSCLIB__)
/* Relocate for dynamic loading and for ELF acc fn-relative syms. */
valu += ANOFFSET (section_offsets, SECT_OFF_TEXT (objfile));
/* FIXME: loses if sizeof (char *) > sizeof (int) */
+ gdb_assert (sizeof (name) <= sizeof (int));
record_line (current_subfile, (int) name, valu);
break;