aboutsummaryrefslogtreecommitdiff
path: root/gdb/paread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-28 16:25:25 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-28 16:25:25 +0000
commit9fdb3f7aad80699becae8d400d181a2b924fb0a5 (patch)
tree9e88ae9cbfb39d1fd0af4392525a3ac8fe309bac /gdb/paread.c
parent0b233d31dfe5919025acff17491ea0ee70491cdc (diff)
downloadgdb-9fdb3f7aad80699becae8d400d181a2b924fb0a5.zip
gdb-9fdb3f7aad80699becae8d400d181a2b924fb0a5.tar.gz
gdb-9fdb3f7aad80699becae8d400d181a2b924fb0a5.tar.bz2
* config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
* elfread.c (record_minimal_symbol_and_info), dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
Diffstat (limited to 'gdb/paread.c')
-rw-r--r--gdb/paread.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/paread.c b/gdb/paread.c
index 686bed6..3c4755d 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -158,7 +158,9 @@ pa_symtab_read (abfd, addr, objfile)
case ST_MILLICODE:
symname = bufp->name.n_strx + stringtab;
ms_type = mst_text;
- bufp->symbol_value &= ~0x3; /* clear out permission bits */
+#ifdef SMASH_TEXT_ADDRESS
+ SMASH_TEXT_ADDRESS (bufp->symbol_value);
+#endif
break;
case ST_DATA:
symname = bufp->name.n_strx + stringtab;
@@ -183,7 +185,9 @@ pa_symtab_read (abfd, addr, objfile)
case ST_CODE:
symname = bufp->name.n_strx + stringtab;
ms_type = mst_file_text;
- bufp->symbol_value &= ~0x3; /* clear out permission bits */
+#ifdef SMASH_TEXT_ADDRESS
+ SMASH_TEXT_ADDRESS (bufp->symbol_value);
+#endif
check_strange_names:
/* GAS leaves labels in .o files after assembling. At
@@ -207,7 +211,9 @@ pa_symtab_read (abfd, addr, objfile)
case ST_MILLICODE:
symname = bufp->name.n_strx + stringtab;
ms_type = mst_file_text;
- bufp->symbol_value &= ~0x3; /* clear out permission bits */
+#ifdef SMASH_TEXT_ADDRESS
+ SMASH_TEXT_ADDRESS (bufp->symbol_value);
+#endif
break;
case ST_DATA: