From: Pedro Alves <palves@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH+doc] Fix PR threads/19422 - show which thread caused stop
Date: Fri, 22 Jan 2016 16:55:00 -0000 [thread overview]
Message-ID: <56A25EEB.306@redhat.com> (raw)
In-Reply-To: <20160122164429.GA28687@host1.jankratochvil.net>
On 01/22/2016 04:44 PM, Jan Kratochvil wrote:
> On Thu, 14 Jan 2016 15:08:40 +0100, Pedro Alves wrote:
> [...]
>> * gdb.base/watchpoint-hw-hit-once.exp: Adjust expected output.
> [...]
>> diff --git a/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp b/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
>> index 5c1be00..46d5c62 100644
>> --- a/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
>> +++ b/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
>> @@ -31,7 +31,7 @@ gdb_test "rwatch watchee"
>>
>> gdb_breakpoint [gdb_get_line_number "dummy = 2"]
>>
>> -gdb_test "continue" "Continuing.\r\nHardware read watchpoint \[0-9\]+: watchee\r\n\r\nValue = 0\r\n.*"
>> +gdb_test "continue" "Continuing.\r\n\r\nHardware read watchpoint \[0-9\]+: watchee\r\n\r\nValue = 0\r\n.*"
>
> I haven't seen a comment why such change is necessary. It probably happens
> from some of the changes involved but not sure if it was really required.
Previously, all breakpoint hits had that extra line, except watchpoints.
The patch made every breakpoint kind call the same function to
print the breakpoint hit, which had the side effect of making that inconsistency
disappear. That is, before we had:
(gdb) c
Continuing.
Breakpoint 2, thread_function0 (arg=0x0) at /home/pedro/gdb/tests/threads.c:87
87 int_return ();
(gdb) c
Continuing.
Hardware watchpoint 4: args[i]
Old value = 0
New value = 1
main () at /home/pedro/gdb/tests/threads.c:57
57 res = pthread_create(&threads[i],
Now watchpoint hits are consistent with all other breakpoints in that aspect:
(gdb) c
Continuing.
Hardware watchpoint 2: args[i]
Old value = 0
New value = 1
main () at /home/pedro/gdb/tests/threads.c:57
57 res = pthread_create(&threads[i],
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-01-22 16:55 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-04 23:30 [PATCH] " Pedro Alves
2016-01-14 14:08 ` [PATCH+doc] " Pedro Alves
2016-01-14 16:36 ` Eli Zaretskii
2016-01-14 17:12 ` Pedro Alves
2016-01-14 18:25 ` Eli Zaretskii
2016-01-14 19:00 ` Pedro Alves
2016-01-14 19:06 ` Eli Zaretskii
2016-01-18 15:17 ` Pedro Alves
2016-01-22 16:44 ` Jan Kratochvil
2016-01-22 16:55 ` Pedro Alves [this message]
2016-01-22 16:56 ` Jan Kratochvil
2016-01-22 17:30 ` [testsuite patch] Fix PR threads/19422 regression + Guile regression [Re: [PATCH+doc] Fix PR threads/19422 - show which thread caused stop] Jan Kratochvil
2016-01-22 17:31 ` [testsuite patch]#2 " Jan Kratochvil
2016-01-22 18:18 ` [testsuite patch]#3 " Jan Kratochvil
2016-01-22 18:37 ` [testsuite patch]#2 " Pedro Alves
2016-01-22 20:05 ` Jan Kratochvil
2016-01-22 20:11 ` Pedro Alves
2016-01-22 20:17 ` Pedro Alves
2016-01-22 20:25 ` [commit] " Jan Kratochvil
2016-01-22 20:44 ` Pedro Alves
2016-01-22 20:51 ` [commit#2] " Jan Kratochvil
2016-01-22 20:53 ` Pedro Alves
2016-01-14 16:04 ` [PATCH] Fix PR threads/19422 - show which thread caused stop Yao Qi
2016-01-18 15:24 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56A25EEB.306@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox