GNU Binutils with patches for OS216
修訂 | a0776b131d7a154125fdc4d22b1dda967c790ae9 (tree) |
---|---|
時間 | 2020-06-19 07:04:50 |
作者 | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
Don't write to inferior_ptid in target.c
gdb/ChangeLog:
2020-06-18 Pedro Alves <palves@redhat.com>
* target.c (generic_mourn_inferior): Use switch_to_no_thread
instead of writing to inferior_ptid.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
4 | + instead of writing to inferior_ptid. | |
5 | + | |
6 | +2020-06-18 Pedro Alves <palves@redhat.com> | |
7 | + | |
3 | 8 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the |
4 | 9 | added thread. |
5 | 10 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch |
@@ -3108,7 +3108,7 @@ generic_mourn_inferior (void) | ||
3108 | 3108 | { |
3109 | 3109 | inferior *inf = current_inferior (); |
3110 | 3110 | |
3111 | - inferior_ptid = null_ptid; | |
3111 | + switch_to_no_thread (); | |
3112 | 3112 | |
3113 | 3113 | /* Mark breakpoints uninserted in case something tries to delete a |
3114 | 3114 | breakpoint while we delete the inferior's threads (which would |