diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-09-14 22:45:49 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-09-14 22:45:49 +0000 |
commit | f69ecb9c9abcd89d0a69e2bf309b01eb2eff7618 (patch) | |
tree | 645baf263476b98bd2b50f48797baaea189055a7 /gdb/f-valprint.c | |
parent | 809ee7e0365ed037cbb26ca3d9cc44431bb0f4b1 (diff) | |
download | gdb-f69ecb9c9abcd89d0a69e2bf309b01eb2eff7618.zip gdb-f69ecb9c9abcd89d0a69e2bf309b01eb2eff7618.tar.gz gdb-f69ecb9c9abcd89d0a69e2bf309b01eb2eff7618.tar.bz2 |
* xcoffread.c (read_xcoff_symtab): Fix obsolete comment about
mst_solib_trampoline.
* f-valprint.c (f_val_print): Change cast of valaddr from
CORE_ADDR * to char **, since that is how it is used.
* dbxread.c (read_dbx_dynamic_symtab): Save copy of symbol names
using obsavestring, and pass that to prim_record_minimal_symbol.
Having the objfile point to bfd_asymbol_name directly doesn't work
if we save and restore a mapped symbol file.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 2f2bd14..57d8ec1 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -455,10 +455,13 @@ f_val_print (type, valaddr, address, stream, format, deref_ref, recurse, and for straight literals (i.e. of the form 'hello world'), valaddr points a ptr to VALUE_LITERAL_DATA(value). */ - /* First dereference valaddr. */ - - straddr = * (CORE_ADDR *) valaddr; - + /* First dereference valaddr. This relies on valaddr pointing to the + aligner union of a struct value (so we are now fetching the + literal_data pointer from that union). FIXME: Is this always + true. */ + + straddr = * (char **) valaddr; + if (straddr) { len = TYPE_LENGTH (type); |