Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	  "vladimir@codesourcery.com" <vladimir@codesourcery.com>
Subject: Re: [PATCH] fix break-always test
Date: Mon, 01 Jun 2009 19:24:00 -0000	[thread overview]
Message-ID: <4A242A52.3030802@vmware.com> (raw)
In-Reply-To: <200905300056.43216.pedro@codesourcery.com>

[-- 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
 

      reply	other threads:[~2009-06-01 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 23:44 Michael Snyder
2009-05-29 23:56 ` Pedro Alves
2009-06-01 19:24   ` Michael Snyder [this message]

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=4A242A52.3030802@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    --cc=vladimir@codesourcery.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