Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Removal of markup annotations
Date: Wed, 28 Sep 2005 22:52:00 -0000	[thread overview]
Message-ID: <17211.7781.314204.820441@kahikatea.snap.net.nz> (raw)
In-Reply-To: <20050928131113.GA6924@nevyn.them.org>

 > I buy it.  The patch is OK.

Trying not to break the testsuite this time, here's a patch for
gdb.base/annota3.exp and gdb.cp/annota3.exp to go with it.

Nick


2005-09-29  Nick Roberts  <nickrob@snap.net.nz>

	* gdb.base/annota3.exp, gdb.cp/annota3.exp: The annotations
	frames-invalid and breakpoints-invalid are no longer generated
	with level 3 so don't expect them in the output.


*** gdb.base/annota3.exp.~1.5.~	2004-07-20 12:24:41.000000000 +1200
--- gdb.base/annota3.exp	2005-09-29 09:26:00.000000000 +1200
***************
*** 118,126 ****
  gdb_expect_list "run until main breakpoint" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
      "Starting program: .*annota3 \r\n"
-     "\(\r\n\032\032\(frames-invalid|breakpoints-invalid\)\r\n\)+"
      "\r\n\032\032starting\r\n"
-     "\(\r\n\032\032\(frames-invalid|breakpoints-invalid\)\r\n\)+"
      "\r\n\032\032breakpoint 1\r\n"
      "\r\n"
      "Breakpoint 1, main \\(\\) at .*annota3.c:32\r\n"
--- 118,124 ----
***************
*** 139,145 ****
  gdb_expect_list "go after array init line" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
      "\r\n\032\032starting\r\n"
-     "\(\r\n\032\032frames-invalid\r\n\)+"
      "\r\n\032\032source .*annota3.c:\[0-9\]+:\[0-9\]+:beg:0x\[0-9a-z\]+\r\n"
      "\r\n\032\032stopped\r\n"
  }
--- 137,142 ----
***************
*** 177,183 ****
  send_gdb "break handle_USR1\n"
  gdb_expect_list "breakpoint handle_USR1" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
      "Breakpoint.*at 0x\[0-9a-z\]+: file.*annota3.c, line.*\r\n"
  }
  
--- 174,179 ----
***************
*** 187,193 ****
  send_gdb "break printf\n"
  gdb_expect_list "breakpoint printf" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
      "Breakpoint.*at 0x\[0-9a-z\]+.*"
  }
  
--- 183,188 ----
***************
*** 199,205 ****
      "\r\n\032\032post-prompt\r\n"
      "Continuing.\r\n"
      "\r\n\032\032starting\r\n"
-     "\r\n\032\032frames-invalid\r\n"
      "\r\n\032\032breakpoint 3\r\n"
      "\r\n"
      "Breakpoint 3, \[^\r\n\]*\r\n"
--- 194,199 ----
***************
*** 227,233 ****
  	"\r\n\032\032post-prompt\r\n"
  	"Continuing with signal SIGUSR1.\r\n"
  	"\r\n\032\032starting\r\n"
- 	"\r\n\032\032frames-invalid\r\n"
  	"\r\n\032\032breakpoint 2\r\n"
  	"Breakpoint 2, handle_USR1 \\(sig=\[0-9\]+\\) at .*annota3.c:\[0-9\]+\r\n"
  	"\r\n\032\032source .*annota3.c:\[0-9\]+:\[0-9\]+:beg:0x\[0-9a-z\]+\r\n"
--- 221,226 ----
***************
*** 277,283 ****
  send_gdb "break main\n"
  gdb_expect_list "break at 28" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
      "Breakpoint 4 at 0x\[0-9a-z\]+: file .*annota3.c, line 32.\r\n"
  }
  
--- 270,275 ----
***************
*** 312,322 ****
  #
  # Test that breakpoints-invalid is issued once and only once for
  # breakpoint ignore count changes, after annotation stopped.
! #
  send_gdb "break 46\n"
  gdb_expect_list  "break at 46" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
      "Breakpoint 5 at 0x\[0-9a-z\]+: file .*annota3.c, line 46.\r\n"
  }
  
--- 304,315 ----
  #
  # Test that breakpoints-invalid is issued once and only once for
  # breakpoint ignore count changes, after annotation stopped.
! # NOTE: breakpoints-invalid annotations have been removed from
! # level 3 but keep these tests for continuity and comparison
! # with annota1.exp.
  send_gdb "break 46\n"
  gdb_expect_list  "break at 46" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
      "Breakpoint 5 at 0x\[0-9a-z\]+: file .*annota3.c, line 46.\r\n"
  }
  
***************
*** 324,343 ****
  gdb_expect_list "ignore 5 4" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
      "Will ignore next 4 crossings of breakpoint 5"
-     "\r\n\032\032breakpoints-invalid\r\n"
      "\r\n"
  }
  
  send_gdb "continue\n"
  gdb_expect_list "annotate ignore count change" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\(\r\n\032\032frames-invalid\r\n\)+"
      "\r\n\032\032breakpoint 5\r\n"
      "Breakpoint 5, main \\(\\) at .*annota3.c:46\r\n"
      "\r\n\032\032source .*annota3.c:46:\[0-9\]+:beg:0x\[0-9a-z\]+\r\n"
      "1: value = 11\r\n"
      "\r\n\032\032stopped\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
  }
  
  # check that ignore command is working, or the above can provide
--- 317,333 ----
***************
*** 347,353 ****
  gdb_expect_list "next to exit loop" "$gdb_prompt$"  {
      "\r\n\032\032post-prompt\r\n"
      "\r\n\032\032starting\r\n"
-     "\(\r\n\032\032frames-invalid\r\n\)+"
      "\r\n\032\032source.*annota3.c:\[0-9\]+:\[0-9\]+:beg:0x\[0-9a-z\]+\r\n"
      "1: value = 12\r\n"
      "\r\n\032\032stopped\r\n"
--- 337,342 ----
***************
*** 357,363 ****
  gdb_expect_list "breakpoint ignore count" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
      "\r\n\032\032starting\r\n"
-     "\(\r\n\032\032frames-invalid\r\n\)+"
      "\r\n\032\032source.*annota3.c:49:\[0-9\]+:beg:0x\[0-9a-z\]+\r\n"
      "1: value = 12\r\n"
      "\r\n\032\032stopped\r\n"
--- 346,351 ----
***************
*** 384,391 ****
  	"\r\n\032\032post-prompt\r\n"
  	"Continuing with signal SIGTRAP.\r\n"
  	"\r\n\032\032starting\r\n"
- 	"\r\n\032\032frames-invalid\r\n"
- 	"\r\n\032\032frames-invalid\r\n"
  	"\r\n\032\032signalled\r\n"
  	"\r\nProgram terminated with signal SIGTRAP, Trace.breakpoint trap.\r\n"
  	"The program no longer exists.\r\n"
--- 372,377 ----


*** gdb.cp/annota3.exp.~1.3.~	2004-02-12 03:01:25.000000000 +1300
--- gdb.cp/annota3.exp	2005-09-29 10:32:07.000000000 +1200
***************
*** 93,101 ****
  gdb_expect_list "first run until main breakpoint" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
      "Starting program: .*annota3 \r\n"
-     "\(\r\n\032\032\(frames-invalid|breakpoints-invalid\)\r\n\)+"
      "\r\n\032\032starting\r\n"
-     "\(\r\n\032\032\(frames-invalid|breakpoints-invalid\)\r\n\)+"
      "\r\n\032\032breakpoint 1\r\n"
      "\r\n"
      "Breakpoint 1, main \\(\\) at .*annota3.cc:25\r\n"
--- 93,99 ----
***************
*** 122,134 ****
      "\r\n\032\032post-prompt\r\n"
      "Continuing.\r\n"
      "\r\n\032\032starting\r\n"
-     "\r\n\032\032frames-invalid\r\n"
      "a.x is 1\r\n"
-     "\r\n\032\032frames-invalid\r\n"
      "\r\n\032\032exited 0\r\n"
      "\r\n"
      "Program exited normally.\r\n"
-     "\r\n\032\032frames-invalid\r\n"
      "\r\n\032\032stopped\r\n"
  }
  
--- 120,129 ----
***************
*** 155,161 ****
  send_gdb "break 22\n"
  gdb_expect_list "break at main" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
      "Breakpoint.*at 0x\[a-z0-9\]+: file.*annota3.cc, line 22.\r\n"
  }
  
--- 150,155 ----
***************
*** 167,175 ****
  send_gdb "run\n"
  gdb_expect_list "second run until main breakpoint" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\(\r\n\032\032\(frames-invalid|breakpoints-invalid\)\r\n\)+"
      "\r\n\032\032starting\r\n"
-     "\(\r\n\032\032\(frames-invalid|breakpoints-invalid\)\r\n\)+"
      "\r\n\032\032breakpoint 2\r\n"
      "\r\n"
      "Breakpoint 2, main \\(\\) at .*annota3.cc:22\r\n"
--- 161,167 ----
***************
*** 183,189 ****
  send_gdb "watch a.x\n"
  gdb_expect_list "set watch on a.x" "$gdb_prompt$" {
      "\r\n\032\032post-prompt\r\n"
-     "\r\n\032\032breakpoints-invalid\r\n"
      ".*atchpoint 3: a.x\r\n" \
  }
  
--- 175,180 ----
***************
*** 193,202 ****
  #
  send_gdb "next\n"
  gdb_expect {
!     -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\(\r\n\032\032frames-invalid\r\n\)+\r\n\032\032watchpoint 3\r\n.*atchpoint 3: a.x\r\n\r\nOld value = 0\r\nNew value = 1\r\nmain \\(\\) at .*$srcfile:$decimal\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n.*$gdb_prompt$" { 
  	pass "watch triggered on a.x"
      }
!     -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n$gdb_prompt$" {
  	kfail "gdb/38" "watch triggered on a.x"
      }
      -re ".*$gdb_prompt$" {
--- 184,193 ----
  #
  send_gdb "next\n"
  gdb_expect {
!     -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032watchpoint 3\r\n.*atchpoint 3: a.x\r\n\r\nOld value = 0\r\nNew value = 1\r\nmain \\(\\) at .*$srcfile:$decimal\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n.*$gdb_prompt$" { 
  	pass "watch triggered on a.x"
      }
!     -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n$gdb_prompt$" {
  	kfail "gdb/38" "watch triggered on a.x"
      }
      -re ".*$gdb_prompt$" {


  reply	other threads:[~2005-09-28 22:52 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15  3:19 Nick Roberts
2005-06-15 15:41 ` Bob Rossi
2005-06-15 23:07   ` Nick Roberts
2005-06-15 23:35     ` Bob Rossi
2005-06-15 23:58       ` Nick Roberts
2005-06-21  1:41         ` Bob Rossi
2005-06-21  6:00           ` Nick Roberts
2005-06-21 10:22             ` Bob Rossi
2005-06-16  3:28       ` Eli Zaretskii
2005-06-15 17:06 ` Eli Zaretskii
2005-06-15 21:41   ` Nick Roberts
2005-06-20 11:54   ` Nick Roberts
2005-06-20 19:29     ` Eli Zaretskii
2005-06-20 21:48       ` Nick Roberts
2005-06-21  3:41         ` Eli Zaretskii
2005-06-21  7:32           ` Nick Roberts
     [not found]             ` <uacljzbgq.fsf@gnu.org>
2005-06-21 23:47               ` Nick Roberts
2005-06-22  3:25                 ` Eli Zaretskii
2005-06-22  6:22                   ` Nick Roberts
2005-07-03 19:04 ` Daniel Jacobowitz
2005-07-03 22:13   ` Nick Roberts
2005-07-03 22:45     ` Daniel Jacobowitz
2005-09-28  0:17 ` Nick Roberts
2005-09-28  2:39   ` Bob Rossi
2005-09-28  3:45   ` Daniel Jacobowitz
2005-09-28  6:40     ` Nick Roberts
2005-09-28 13:11       ` Daniel Jacobowitz
2005-09-28 22:52         ` Nick Roberts [this message]
2005-09-28 22:56           ` Daniel Jacobowitz

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=17211.7781.314204.820441@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=drow@false.org \
    --cc=gdb-patches@sources.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