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 3/8] Types GC [display_uses_solib_p to exp_iterate]


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

Jan> display_uses_solib_p also contained a bug as it ignores objfiles
Jan> references in UNOP_MEMVAL_TLS.

Nice catch.

Jan> +exp_iterate (struct expression *exp,

[...]

Jan> +	case UNOP_IN_RANGE:
Jan> +	case UNOP_QUAL:
Jan> +	  if (exp->language_defn->la_language == language_ada)
Jan> +	    type = elts[i + 1].type;

I don't think this is ok.  Instead, I think this needs a new language
method of some kind, with an Ada-specific implementation that handles
this case.  I realize this is more work, but I think it is important
to try to separate out language-specific bits from the core.

Otherwise this seems reasonable to me.

Tom


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