forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user