This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix dangling displays in separate debug


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> 2010-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan> 	* printcmd.c (display_uses_solib_p): Check also
Jan> 	SEPARATE_DEBUG_OBJFILE.

Jan> -	  if (SYMBOL_SYMTAB (symbol)->objfile == solib->objfile)
Jan> +	  if (SYMBOL_SYMTAB (symbol)->objfile == solib->objfile
Jan> +	      || SYMBOL_SYMTAB (symbol)->objfile
Jan> +		 == solib->objfile->separate_debug_objfile)

An objfile can now have multiple separate debuginfo objfiles, linked
using separate_debug_objfile_link.

So, I think this test should actually be:

	  if (SYMBOL_SYMTAB (symbol)->objfile == solib->objfile
	      || SYMBOL_SYMTAB (symbol)->objfile->separate_debug_objfile_backlink
		 == solib->objfile)

What do you think?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]