aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-10-21 10:34:07 +0000
committerJohn Gilmore <gnu@cygnus>1992-10-21 10:34:07 +0000
commit84a792c778c2b9d742f4fced6050897bede357d9 (patch)
tree49e625b3ca7732a3aa9bc0e36b1f80b3b3c40b4a
parentb517f124017225c6cb0a5b815bd1574a9617aa57 (diff)
downloadgdb-84a792c778c2b9d742f4fced6050897bede357d9.zip
gdb-84a792c778c2b9d742f4fced6050897bede357d9.tar.gz
gdb-84a792c778c2b9d742f4fced6050897bede357d9.tar.bz2
* mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
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.
-rw-r--r--gdb/mipsread.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index f5740ef..5480c14 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -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)
/* Things that really are local to this module */