From: Bob Rossi <bob@brasko.net>
To: gdb-patches@sources.redhat.com
Subject: MI testsuite mi-until.exp failures
Date: Wed, 17 Aug 2005 15:09:00 -0000 [thread overview]
Message-ID: <20050817031718.GA13485@white> (raw)
Hi,
Using gcc 4.0, I get error's with the mi-until.exp and mi2-until.exp
testcases. The first issue is trivial.
The file mi-var-child.c needed '#include <string.h>' in order for the
file to compile because of memset. Is string.h appropriate for this? I
know memset can be in different headers on different systems.
Also, for some reason, the line number was different. So, either it's OK
for the line number to be different and this patch is OK, or it's not OK
for the line number to be different and this patch is bad. Any ideas?
Thanks,
Bob Rossi
Index: src/gdb/testsuite/ChangeLog
+ * gdb.mi/mi-until.exp: Change hard coded number to regex for number.
+ * gdb.mi/mi2-until.exp: Ditto.
+ * gdb.mi/mi-var-child.c: Add #include <string.h>.
Index: gdb/testsuite/gdb.mi/mi-until.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-until.exp,v
retrieving revision 1.9
diff -u -r1.9 mi-until.exp
--- gdb/testsuite/gdb.mi/mi-until.exp 18 May 2005 03:41:59 -0000 1.9
+++ gdb/testsuite/gdb.mi/mi-until.exp 17 Aug 2005 03:08:37 -0000
@@ -78,7 +78,7 @@
send_gdb "111-exec-until\n"
gdb_expect {
- -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"12\"\}\r\n$mi_gdb_prompt$" {
+ -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"\[0-9\]+\"\}\r\n$mi_gdb_prompt$" {
pass "until after while loop"
}
timeout {
Index: gdb/testsuite/gdb.mi/mi-var-child.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-child.c,v
retrieving revision 1.2
diff -u -r1.2 mi-var-child.c
--- gdb/testsuite/gdb.mi/mi-var-child.c 31 Jul 2005 22:10:53 -0000 1.2
+++ gdb/testsuite/gdb.mi/mi-var-child.c 17 Aug 2005 03:08:37 -0000
@@ -18,6 +18,7 @@
Boston, MA 02111-1307, USA. */
#include <stdlib.h>
+#include <string.h>
struct _simple_struct {
int integer;
Index: gdb/testsuite/gdb.mi/mi2-until.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-until.exp,v
retrieving revision 1.3
diff -u -r1.3 mi2-until.exp
--- gdb/testsuite/gdb.mi/mi2-until.exp 18 May 2005 03:41:59 -0000 1.3
+++ gdb/testsuite/gdb.mi/mi2-until.exp 17 Aug 2005 03:08:37 -0000
@@ -79,7 +79,7 @@
send_gdb "111-exec-until\n"
gdb_expect {
- -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"12\"\}\r\n$mi_gdb_prompt$" {
+ -re "111\\^running\r\n${mi_gdb_prompt}111\\*stopped,reason=\"end-stepping-range\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"\[0-9\]+\"\}\r\n$mi_gdb_prompt$" {
pass "until after while loop"
}
timeout {
next reply other threads:[~2005-08-17 3:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-17 15:09 Bob Rossi [this message]
2005-08-30 12:50 ` 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=20050817031718.GA13485@white \
--to=bob@brasko.net \
--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