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 v2] Fix PR18360 - internal error when using "interrupt -a"


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 (齐尧)


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