From: Michael Elizabeth Chastain <mec@shout.net>
To: drow@mvista.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA/c++testsuite] New test for constructor breakpoints
Date: Mon, 18 Feb 2002 12:26:00 -0000 [thread overview]
Message-ID: <200202182025.g1IKPpc04061@duracef.shout.net> (raw)
This patch is returned for rework. I like the patch, but there is
a cascade problem:
"set_bp_overloaded foo::foo" tests FAIL
the breakpoints are not present
continue_to_bp_constructor issues "continue" unconditionally
the script loses synchronization with the program-under-test at this point
all the tests after that FAIL
This happens on target=native host=i686-pc-linux-gnu with all the gcc v3
configurations:
gcc 3.0.3, -gdwarf-2
gcc 3.0.3, -gstabs+
gcc 3.0.4-20020215, -gdwarf-2
gcc 3.0.4-20020215, -gstabs+
gcc gcc-3_0-branch, -gdwarf-2
gcc gcc-3_0-branch, -gstabs+
gcc HEAD, -gdwarf-2
gcc HEAD, -gstabs+
Can you do something in continue_to_bp_constructor to keep synchronization?
Maybe:
send_gdb "info b ${bpnumber}\n"
gdb_expect {
-re "Num.*\r\n${bpnumber}.*\r\n.*$gdb_prompt $" {
send_gdb "continue\n"
gdb_expect {
...
}
}
-re "No breakpoint or watchpoint number ${bpnumber}.*gdb_prompt $" {
fail "continue to bp overloaded constructor : ${argtypes}"
}
-re ".*$gdb_prompt $" {
fail "continue to bp overloaded constructor : ${argtypes}"
}
timeout {
fail "continue to bp overloaded constructor : ${argtypes} (timeout)"
}
}
Or if you have a better idea, go for it. I just want to fix the problem
where all the currently-working tests FAIL if the new tests FAIL.
Michael C
===
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* gdb.c++/ovldbreak.exp: Test breakpoints on the constructors.
next reply other threads:[~2002-02-18 20:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-18 12:26 Michael Elizabeth Chastain [this message]
2002-02-18 13:17 ` Daniel Jacobowitz
2002-02-19 15:35 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2002-02-19 16:04 Michael Elizabeth Chastain
2002-02-19 16:12 ` Daniel Jacobowitz
2002-02-16 11:11 Michael Elizabeth Chastain
2002-02-15 16:50 Michael Elizabeth Chastain
2002-02-15 18:28 ` Daniel Jacobowitz
2002-02-14 15:32 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=200202182025.g1IKPpc04061@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