RE: [PATCH 19/28] Don't write to inferior_ptid in btrace_fetch

Metzger, Markus T
2020-04-15T15:17:16Z

> From 92c8fa469295b5737e6cb5e882024af2e9872c4c Mon Sep 17 00:00:00 2001
> From: Pedro Alves <palves@redhat.com>
> Date: Mon, 13 Apr 2020 20:02:22 +0100
> Subject: [PATCH 19/28] Don't write to inferior_ptid in btrace.c
>
> gdb/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
> to inferior_ptid.
> ---
> gdb/btrace.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)

Looks good to me.

> So here's an alternative patch. No regressions when tested with:
>
> $ make check TESTS="gdb.btrace/*.exp */*btrace*.exp"

And thanks for explicitly running the btrace tests.

Regards,
Markus.

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928