diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-12 16:55:32 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-12 16:55:32 +0000 |
commit | 260edbc2caedd55298a64621088983551dfd208c (patch) | |
tree | a7be0a7b754f6be73edb8474d8b4837ec39da3cf /gdb/somread.c | |
parent | c1afe53dd0ad0474a838e84cd0d98f8830c3d9ef (diff) | |
download | gdb-260edbc2caedd55298a64621088983551dfd208c.zip gdb-260edbc2caedd55298a64621088983551dfd208c.tar.gz gdb-260edbc2caedd55298a64621088983551dfd208c.tar.bz2 |
2007-06-12 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
gdbarch_smash_text_address.
* somread.c (som_symtab_read): Likewise.
* elfread.c (record_minimal_symbol): Likewise.
* dbxread.c (process_one_symbol): Likewise.
* coffread.c (coff_symtab_read): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/somread.c')
-rw-r--r-- | gdb/somread.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gdb/somread.c b/gdb/somread.c index 7f31303..c4f0744 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -133,7 +133,8 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, symname = bufp->name.n_strx + stringtab; ms_type = mst_text; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); break; case ST_ENTRY: @@ -146,14 +147,16 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, else ms_type = mst_text; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); break; case ST_STUB: symname = bufp->name.n_strx + stringtab; ms_type = mst_solib_trampoline; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); break; case ST_DATA: @@ -181,7 +184,8 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, symname = bufp->name.n_strx + stringtab; ms_type = mst_file_text; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); check_strange_names: /* Utah GCC 2.5, FSF GCC 2.6 and later generate correct local @@ -212,7 +216,8 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, symname = bufp->name.n_strx + stringtab; ms_type = mst_file_text; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); break; case ST_ENTRY: @@ -223,14 +228,16 @@ som_symtab_read (bfd *abfd, struct objfile *objfile, we do for SS_UNIVERSAL and SS_EXTERNAL symbols above. */ ms_type = mst_file_text; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); break; case ST_STUB: symname = bufp->name.n_strx + stringtab; ms_type = mst_solib_trampoline; bufp->symbol_value += text_offset; - bufp->symbol_value = SMASH_TEXT_ADDRESS (bufp->symbol_value); + bufp->symbol_value = gdbarch_smash_text_address + (current_gdbarch, bufp->symbol_value); break; |