From 84a792c778c2b9d742f4fced6050897bede357d9 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 21 Oct 1992 10:34:07 +0000 Subject: [PATCH] * 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. --- gdb/mipsread.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/mipsread.c b/gdb/mipsread.c index f5740efa7d4..5480c1439e4 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 */ -- 2.30.2