* [PATCH] fix break-always test
@ 2009-05-29 23:44 Michael Snyder
2009-05-29 23:56 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2009-05-29 23:44 UTC (permalink / raw)
To: vladimir, gdb-patches
[-- Attachment #1: Type: text/plain, Size: 61 bytes --]
"set breakpoint always" does not accept "1", it wants "on".
[-- Attachment #2: always.txt --]
[-- Type: text/plain, Size: 687 bytes --]
2009-05-29 Michael Snyder <msnyder@vmware.com>
* gdb.base/break-always.exp: Change "1" to "on".
Index: gdb.base/break-always.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break-always.exp,v
retrieving revision 1.2
diff -u -p -r1.2 break-always.exp
--- gdb.base/break-always.exp 3 Jan 2009 05:58:03 -0000 1.2
+++ gdb.base/break-always.exp 29 May 2009 23:41:24 -0000
@@ -21,7 +21,7 @@ if { [prepare_for_testing break-always.e
set bar_location [gdb_get_line_number "break in bar" break-always.c]
-gdb_test "set breakpoint always-inserted 1" ""
+gdb_test "set breakpoint always-inserted on" ""
runto foo
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] fix break-always test
2009-05-29 23:44 [PATCH] fix break-always test Michael Snyder
@ 2009-05-29 23:56 ` Pedro Alves
2009-06-01 19:24 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2009-05-29 23:56 UTC (permalink / raw)
To: gdb-patches; +Cc: Michael Snyder, vladimir
On Saturday 30 May 2009 00:41:53, Michael Snyder wrote:
> "set breakpoint always" does not accept "1", it wants "on".
>
(gdb) set breakpoint always-inserted 1
Undefined item: "1".
(gdb) PASS: gdb.base/break-always.exp: set breakpoint always-inserted 1
Outch, this used to work, until set breakpoint always-inserted
was made into a three-state. Yikes, this has been broken for months.
My fault, as usual. :-)
> 2009-05-29 Michael Snyder <msnyder@vmware.com>
>
> * gdb.base/break-always.exp: Change "1" to "on".
This is certainly OK.
It would be a nice improvent to make the test confirm that
the mode is in effect, perhaps by just reading back the setting
with "show breakpoint always-inserted".
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix break-always test
2009-05-29 23:56 ` Pedro Alves
@ 2009-06-01 19:24 ` Michael Snyder
0 siblings, 0 replies; 3+ messages in thread
From: Michael Snyder @ 2009-06-01 19:24 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches, vladimir
[-- Attachment #1: Type: text/plain, Size: 821 bytes --]
Pedro Alves wrote:
> On Saturday 30 May 2009 00:41:53, Michael Snyder wrote:
>> "set breakpoint always" does not accept "1", it wants "on".
>>
>
> (gdb) set breakpoint always-inserted 1
> Undefined item: "1".
> (gdb) PASS: gdb.base/break-always.exp: set breakpoint always-inserted 1
>
> Outch, this used to work, until set breakpoint always-inserted
> was made into a three-state. Yikes, this has been broken for months.
> My fault, as usual. :-)
>
>> 2009-05-29 Michael Snyder <msnyder@vmware.com>
>>
>> * gdb.base/break-always.exp: Change "1" to "on".
>
> This is certainly OK.
>
> It would be a nice improvent to make the test confirm that
> the mode is in effect, perhaps by just reading back the
> setting with "show breakpoint always-inserted".
Good idea, implemented and checked in as below.
[-- Attachment #2: always.txt --]
[-- Type: text/plain, Size: 776 bytes --]
2009-05-29 Michael Snyder <msnyder@vmware.com>
* gdb.base/break-always.exp: Change "1" to "on".
Add confirmation check.
Index: gdb.base/break-always.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break-always.exp,v
retrieving revision 1.2
diff -d -u -r1.2 break-always.exp
--- gdb.base/break-always.exp 3 Jan 2009 05:58:03 -0000 1.2
+++ gdb.base/break-always.exp 1 Jun 2009 19:18:59 -0000
@@ -21,7 +21,10 @@
set bar_location [gdb_get_line_number "break in bar" break-always.c]
-gdb_test "set breakpoint always-inserted 1" ""
+gdb_test "set breakpoint always-inserted on" ""
+
+gdb_test "show breakpoint always-inserted" "mode is on\." \
+ "confirm breakpoint always-inserted"
runto foo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-01 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-29 23:44 [PATCH] fix break-always test Michael Snyder
2009-05-29 23:56 ` Pedro Alves
2009-06-01 19:24 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox