mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
gdb/testsuite/
* gdb.cp/templates.exp (test_template_typedef): Import gdb_prompt. (print destructor of template typedef): Extend it for gcc/51668 XFAIL. (verify GCC PR debug/51668): New test.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2011-12-23 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* gdb.cp/templates.exp (test_template_typedef): Import gdb_prompt.
|
||||||
|
(print destructor of template typedef): Extend it for gcc/51668 XFAIL.
|
||||||
|
(verify GCC PR debug/51668): New test.
|
||||||
|
|
||||||
2011-12-23 Kevin Pouget <kevin.pouget@st.com>
|
2011-12-23 Kevin Pouget <kevin.pouget@st.com>
|
||||||
|
|
||||||
Introduce gdb.FinishBreakpoint in Python.
|
Introduce gdb.FinishBreakpoint in Python.
|
||||||
|
@ -202,12 +202,32 @@ proc test_template_calls {} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc test_template_typedef {} {
|
proc test_template_typedef {} {
|
||||||
|
global gdb_prompt
|
||||||
|
|
||||||
gdb_test "print intBazOne::baz" ".*baz\\(int, int\\)>" \
|
gdb_test "print intBazOne::baz" ".*baz\\(int, int\\)>" \
|
||||||
"print method of template typedef"
|
"print method of template typedef"
|
||||||
|
|
||||||
gdb_test "print intBazOne::~Baz" ".*~Baz(\\(\\))?>" \
|
set test "print destructor of template typedef"
|
||||||
"print destructor of template typedef"
|
gdb_test_multiple "print intBazOne::~Baz" $test {
|
||||||
|
-re "~Baz(\\(\\))?>\r\n$gdb_prompt $" {
|
||||||
|
pass $test
|
||||||
|
}
|
||||||
|
-re "There is no field named ~Baz\r\n$gdb_prompt $" {
|
||||||
|
set test2 "verify GCC PR debug/51668"
|
||||||
|
gdb_test_multiple "whatis intBazOne" $test2 {
|
||||||
|
-re "type = Baz<int, \\(char\\)'\\\\001'>\r\n$gdb_prompt $" {
|
||||||
|
setup_xfail gcc/51668 "*-*-*"
|
||||||
|
xfail $test
|
||||||
|
pass $test2
|
||||||
|
}
|
||||||
|
-re "\r\n$gdb_prompt $" {
|
||||||
|
# Some unexpected response.
|
||||||
|
fail $test
|
||||||
|
fail $test2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proc test_template_args {} {
|
proc test_template_args {} {
|
||||||
|
Reference in New Issue
Block a user