RE: [patch v8 24/24] record-btrace: add (reverse-)stepping support

Metzger, Markus T
2013-12-18T09:44:08Z

> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Pedro Alves

> I'd understand that if the code looked obviously like but,
> how the quoted code above seems to be resuming/stepping all
> threads?
>
> /* Find the thread to move. */
> if (ptid_equal (minus_one_ptid, ptid) || ptid_is_pid (ptid))
> {
> ALL_THREADS (tp)
> record_btrace_resume_thread (tp, flag);

I removed this.
This case is handled in record_btrace_find_resume_thread, where
we use inferior_ptid to find the thread to resume.

Regards,
Markus.
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052