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 1/2] mi: Restore original thread/frame when specifying --thread or --thread-group


On 16-08-05 01:26 PM, Pedro Alves wrote:
> Yeah.  The approach of extending the previous_inferior_ptid's scope a bit would
> avoid this, since it wouldn't need to revert back anything with a cleanup.
> Might end up being that once all the spots are identified, switching to
> the other approach ends up being a simpler patch.

Hmm maybe.  I'll try to continue on that path and see what it gives.  I really feel
like I don't know what I am doing, but I'll try anyway, that's how we learn I suppose :).

> Sounds like it.  And don't we need a similar treatment for --frame ?

I don't think we do.  --frame can only be used with --thread, and if --thread is specified
we will restore the state.


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