* mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
authorJohn Gilmore <gnu@cygnus>
Wed, 21 Oct 1992 10:34:07 +0000 (10:34 +0000)
committerJohn Gilmore <gnu@cygnus>
Wed, 21 Oct 1992 10:34:07 +0000 (10:34 +0000)
definition, replace with portable one.
* remote-nindy.c:  Lint.
(nindy_wait):  Return type is int, result is inferior_pid.
* symmisc.c (dump_psymtab):  Only print section_offsets if set.
(initialize_symmisc):  Remove empty function.
* tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
Remove obsolete, misspelled macro.
* doc/gdbint.texinfo:  Document obsolete STACK_END_ADDR.
(all @node commands):  Use new form to avoid nitpicking errors.
* doc/gdbint.texinfo:  Document host/native/target split.

gdb/mipsread.c

index f5740ef..5480c14 100644 (file)
@@ -183,12 +183,11 @@ struct complaint pdr_static_symbol_complaint =
        (((a) == GLEVEL_3) ? ((b) < GLEVEL_3) :                 \
         ((b) == GLEVEL_3) ? -1 : (int)((b) - (a)))
 
-/* When looking at .o files, avoid tripping over bad addresses */
+/* When looking at .o files, avoid tripping over zero pointers.
+   FIXME; places that use this should be fixed to convert from
+   external to internal format, rather than examining in-place. */
 
-#define SAFE_TEXT_ADDR 0x400000
-#define SAFE_DATA_ADDR 0x10000000
-
-#define UNSAFE_DATA_ADDR(p)    ((unsigned)p < SAFE_DATA_ADDR || (unsigned)p > 2*SAFE_DATA_ADDR)
+#define        UNSAFE_DATA_ADDR(p)     ((p) == 0)
 \f
 /* Things that really are local to this module */