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] gdb: Eliminate the 'stop_pc' global


On 06/21/2018 05:55 PM, Pedro Alves wrote:
> In my multi-target work, I need to add a few more
> scoped_restore_current_thread and switch_to_thread calls in some
> places, and in some lower-level places I was fighting against the fact
> that switch_to_thread reads/refreshes the stop_pc global.
> 
> Instead of piling on workarounds, let's just finally eliminate the
> stop_pc global.  We already have the per-thread
> thread_info->suspend.stop_pc field, so it's mainly a matter of using
> that more/instead.

Thanks guys for the review.

I've pushed it in now.

Thanks,
Pedro Alves


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