From a367db8959eea30d209a2e19e31e6408e345389f Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sat, 13 May 1995 20:39:21 +0000 Subject: * rs6000-tdep.c (find_toc_address): Revise comment. * symfile.c, symfile.h (init_psymbol_list): New function; consolidate duplicated copies from os9kread.c, dbxread.c and dwarfread.c. * defs.h: Declare info_verbose. * xcoffread.c: Extensive changes to support psymtabs. --- gdb/rs6000-tdep.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gdb/rs6000-tdep.c') diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 22602ff..e6e31aa 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1199,10 +1199,12 @@ add_text_to_loadinfo (textaddr, dataaddr) } -/* FIXME: This assumes that the "textorg" and "dataorg" elements +/* Note that this assumes that the "textorg" and "dataorg" elements of a member of this array are correlated with the "toc_offset" - element of the same member. But they are sequentially assigned in wildly - different places, and probably there is no correlation. FIXME! */ + element of the same member. This is taken care of because the loops + which assign the former (in xcoff_relocate_symtab or xcoff_relocate_core) + and the latter (in scan_xcoff_symtab, via vmap_symtab, in vmap_ldinfo + or xcoff_relocate_core) traverse the same objfiles in the same order. */ static CORE_ADDR find_toc_address (pc) -- cgit v1.1