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: [patchv2] Fix C++ regression for bpt conditionals


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

Tom> I am not sure, but I think we don't want to lose this language change.
Tom> It seems like it could be the spot that causes the transition from
Tom> "minimal" to whatever language "main" (or whatever) is using.

Jan> There is some non-trivial code trying to determine LANG from BLOCK,
Jan> FUNC etc.  I believe LANG should be right.  If LANG is not right
Jan> then there is wrong for example the existing code:
Jan>        if (lang->la_parser ())

I don't understand.

What I meant is that if get_current_arch changes the global
current_language, then losing this transition may cause a user-visible
change.  So, it seems like it would be better to make the cleanup after
calling get_current_arch.

Tom


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