From 181c1381a54475957d907a7d86948548e17b9c0f Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Mon, 4 Feb 2002 11:55:36 +0000 Subject: * gdbarch.sh (copyright): Update years in generated header. (SMASH_TEXT_ADDRESS): Add rule. *gdbarch.h, gdbarch.c: Re-generate. * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS. * dbxread.c: Likewise. * dwarfread.c: Likewise. * elfread.c: Likewise. * somread.c: Likewise. * arm-tdep.c (arm_smash_text_address): New function. * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above. --- gdb/dwarfread.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gdb/dwarfread.c') diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index d5a62cc..dc72f87 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -1,6 +1,6 @@ /* DWARF debugging format support for GDB. Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001 + 2001, 2002 Free Software Foundation, Inc. Written by Fred Fish at Cygnus Support. Portions based on dbxread.c, mipsread.c, coffread.c, and dwarfread.c from a Data General SVR4 gdb port. @@ -1952,11 +1952,9 @@ process_dies (char *thisdie, char *enddie, struct objfile *objfile) { nextdie = thisdie + di.die_length; } -#ifdef SMASH_TEXT_ADDRESS /* I think that these are always text, not data, addresses. */ - SMASH_TEXT_ADDRESS (di.at_low_pc); - SMASH_TEXT_ADDRESS (di.at_high_pc); -#endif + di.at_low_pc = SMASH_TEXT_ADDRESS (di.at_low_pc); + di.at_high_pc = SMASH_TEXT_ADDRESS (di.at_high_pc); switch (di.die_tag) { case TAG_compile_unit: -- cgit v1.1