From: Michael Elizabeth Chastain <mec@shout.net>
To: drow@mvista.com
Cc: gdb-patches@sources.redhat.com
Subject: [PATCH] gdb.c++/method.exp: xfail for missing const
Date: Mon, 08 Apr 2002 11:32:00 -0000 [thread overview]
Message-ID: <200204081832.g38IWFf11265@duracef.shout.net> (raw)
How about this for printing "this" in a const method?
It reports PASS if the required "const" is present.
It reports (XFAIL|FAIL) with "missing const" if required "const" is missing.
XFAIL if stabs debugging format
FAIL if any other debugging format
It reports FAIL for any other output.
Michael C
===
# Check access to this pointer
#
# gcc versions up to 3.0.4 with -gstabs+ do not emit "const" indicators,
# so the output is "A *". It should be "const A *" or "const A * const".
get_debug_format
send_gdb "print this\n"
gdb_expect {
-re "\\$\[0-9\]* = \\(const (class |)A *\\* *(const|)\\) $hex\r\n$gdb_prompt $" {
pass "print this in A::bar"
}
-re "\\$\[0-9\]* = \\((class |)A *\\* *(const|)\\) $hex\r\n$gdb_prompt $" {
setup_xfail_format "stabs"
fail "print this in A::bar (missing const)"
}
-re ".*$gdb_prompt $" { fail "print this in A::bar" }
timeout { fail "(timeout) print this in A::bar" }
}
next reply other threads:[~2002-04-08 18:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-08 11:32 Michael Elizabeth Chastain [this message]
2002-04-08 11:46 ` Daniel Jacobowitz
2002-04-08 12:28 Michael Elizabeth Chastain
2002-04-08 14:07 ` Daniel Jacobowitz
2002-04-08 15:24 Michael Elizabeth Chastain
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=200204081832.g38IWFf11265@duracef.shout.net \
--to=mec@shout.net \
--cc=drow@mvista.com \
--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