This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Fix PR18360 - internal error when using "interrupt -a"
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 27 Mar 2017 23:02:23 +0100
- Subject: Re: [PATCH v2] Fix PR18360 - internal error when using "interrupt -a"
- Authentication-results: sourceware.org; auth=none
- References: <1478628898-27452-1-git-send-email-palves@redhat.com> <d931e29e-0dde-8e59-3cb9-7d990268ba73@codesourcery.com> <225ae198-63d5-1abc-8f9d-44099e59aa8a@redhat.com> <6fe90020-ab08-f79a-348e-db9c906b3d39@redhat.com>
On Wed, Mar 8, 2017 at 7:55 PM, Pedro Alves <palves@redhat.com> wrote:
> On 11/15/2016 06:21 PM, Pedro Alves wrote:
>
>> Meanwhile, I managed to trip the new assertions put in place to ensure
>> that GDB doesn't resume threads when they should be help stopped. We'll
>> need a further tweak. I'll post a v2 soon.
>
> After some amount of "soon"... here's what I pushed.
>
> v2 adds a handle_stop_requested function and use it in all event waitkinds.
>
Hi Pedro,
the new test fails on aarch64-linux and s390x-linux. In gdb.log of
aarch64-linux, I
can see that stop event is printed but signal received reason
(Thread XX "interrupt-while" stopped) is not printed some time.
Thread 16 "interrupt-while" stopped.^M
infinite_loop () at
/home/qiyao/gnu/build-aarch64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/interrupt-while-step-over.c:37^M
37 dummy++; /* set breakpoint here */^M
0x00000000004007a8 in infinite_loop () at
/home/qiyao/gnu/build-aarch64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/interrupt-while-step-over.c:37^M
37 dummy++; /* set breakpoint here */^M
0x00000000004007a4 in infinite_loop () at
/home/qiyao/gnu/build-aarch64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/interrupt-while-step-over.c:37^M
37 dummy++; /* set breakpoint here */^M
^M
Thread 10 "interrupt-while" stopped.^M
infinite_loop () at
/home/qiyao/gnu/build-aarch64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/interrupt-while-step-over.c:37^M
37 dummy++; /* set breakpoint here */^M
0x00000000004007a4 in infinite_loop () at
/home/qiyao/gnu/build-aarch64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/interrupt-while-step-over.c:37^M
37 dummy++; /* set breakpoint here */^M
0x00000000004007a4 in infinite_loop () at
/home/qiyao/gnu/build-aarch64/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.threads/interrupt-while-step-over.c:37^M
37 dummy++; /* set breakpoint here */^M
--
Yao (齐尧)