Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA/testsuite] Allow __libc_start_main above main in annota1.exp
@ 2002-01-09 16:05 Daniel Jacobowitz
  2002-01-09 16:41 ` Andrew Cagney
  2002-01-29 21:57 ` Daniel Jacobowitz
  0 siblings, 2 replies; 12+ messages in thread
From: Daniel Jacobowitz @ 2002-01-09 16:05 UTC (permalink / raw)
  To: gdb-patches

From the "annoying testsuite failures cleanup" department - if anyone has a
bright idea on how to write annota tests in a more readable, less
long-single-line fashion, I'd love to hear it.  This fixes the test on all
my compiler/debug combinations, i386-linux.  OK to commit?

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

2002-01-09  Daniel Jacobowitz  <drow@mvista.com>

	* gdb.base/annota1.exp (backtrace from shlibrary): Fix spelling. 
	Allow a start function above main.

Index: annota1.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.exp,v
retrieving revision 1.7
diff -u -p -r1.7 annota1.exp
--- annota1.exp	2001/12/20 16:52:07	1.7
+++ annota1.exp	2002/01/09 23:53:35
@@ -247,8 +247,8 @@ gdb_expect {
 #
 send_gdb "backtrace\n"
 gdb_expect {
-  -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${srcdir}/${subdir}/${srcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n$gdb_prompt$" \
-	  { pass "bactrace from shlibrary" }
+  -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0  \r\n(\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n)*\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1  \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${srcdir}/${subdir}/${srcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n(\r\n\032\032frame-begin .*\r\n\r\n\032\032frame-end\r\n)*$gdb_prompt$" \
+	  { pass "backtrace from shlibrary" }
   -re ".*$gdb_prompt$"     { fail "backtrace from shlibrary" }
   timeout	            { fail "backtrace from shlibrary (timeout)" }
 }


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [RFA/testsuite] Allow __libc_start_main above main in annota1.exp
@ 2002-01-30  8:02 Michael Elizabeth Chastain
  2002-01-30  8:37 ` Fernando Nasser
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2002-01-30  8:02 UTC (permalink / raw)
  To: drow, gdb-patches

BTW, the annotation interface is deprecated (see the NEWS file
in gdb 5.1.1).  I'm in favor of maintaining test scripts for
deprecated features for a while, but I don't feel an urge to
solve the "giant annotation line" problem.

Andrew or anyone, can you say how long the annotation interface
is going to stay around?

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-02-09 22:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 16:05 [RFA/testsuite] Allow __libc_start_main above main in annota1.exp Daniel Jacobowitz
2002-01-09 16:41 ` Andrew Cagney
2002-01-29 21:57 ` Daniel Jacobowitz
2002-01-29 22:59   ` Kevin Buettner
2002-01-30  7:01     ` Fernando Nasser
2002-01-30 21:08       ` Daniel Jacobowitz
2002-02-09  8:19   ` Jim Blandy
2002-02-09 14:14     ` Daniel Jacobowitz
2002-01-30  8:02 Michael Elizabeth Chastain
2002-01-30  8:37 ` Fernando Nasser
2002-02-09  8:18   ` Jim Blandy
2002-02-09  8:19   ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox