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 08/23] Introduce switch_to_inferior_no_thread


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> Several places want to switch context to an inferior and its pspace,
Pedro> while at the same time switch to "no thread selected".  This commit
Pedro> adds a function that does that, and uses it in a few places.  The
Pedro> function is made extern because many more uses will be added in follow
Pedro> up commits.

mi-main.c:run_one_inferior could also be converted.

This isn't directly related to this patch, but I wonder why
set_current_inferior doesn't set the current program space as well.  It
seems possibly dangerous to have these globals that can get out of sync.

Tom


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