diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-04 11:55:36 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-04 11:55:36 +0000 |
commit | 181c1381a54475957d907a7d86948548e17b9c0f (patch) | |
tree | 72c065b37c11ca2d77853a62857bda0ff499ddaf /gdb/dwarfread.c | |
parent | fa4ba8da6c28c972dd1b6b9971e29b51aabaafcc (diff) | |
download | gdb-181c1381a54475957d907a7d86948548e17b9c0f.zip gdb-181c1381a54475957d907a7d86948548e17b9c0f.tar.gz gdb-181c1381a54475957d907a7d86948548e17b9c0f.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 8 |
1 files changed, 3 insertions, 5 deletions
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: |