mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
2012-03-08 Luis Machado <lgustavo@codesourcery.com>
Revert: 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com> Implement testsuite workaround for PR breakpoints/13781. * gdb.cp/mb-templates.exp: New loop with variable $workaround. (set breakpoint condition-evaluation host): New conditional command.
This commit is contained in:
@ -1,3 +1,13 @@
|
|||||||
|
2012-03-08 Luis Machado <lgustavo@codesourcery.com>
|
||||||
|
|
||||||
|
Revert:
|
||||||
|
|
||||||
|
2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Implement testsuite workaround for PR breakpoints/13781.
|
||||||
|
* gdb.cp/mb-templates.exp: New loop with variable $workaround.
|
||||||
|
(set breakpoint condition-evaluation host): New conditional command.
|
||||||
|
|
||||||
2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Fix CU relative vs. absolute DIE offsets.
|
Fix CU relative vs. absolute DIE offsets.
|
||||||
|
@ -38,35 +38,24 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
# If GDB crashes try it again workarounding PR breakpoints/13781.
|
clean_restart ${executable}
|
||||||
|
|
||||||
foreach workaround [list "" " (workaround)"] {
|
set bp_location [gdb_get_line_number "set breakpoint here"]
|
||||||
clean_restart ${executable}
|
|
||||||
|
|
||||||
if {${workaround} != ""} {
|
# Set a breakpoint with multiple locations
|
||||||
gdb_test_no_output "set breakpoint condition-evaluation host"
|
# and a condition.
|
||||||
}
|
|
||||||
|
|
||||||
set bp_location [gdb_get_line_number "set breakpoint here"]
|
gdb_test "break $srcfile:$bp_location if i==1" \
|
||||||
|
"Breakpoint.*at.*: $srcfile:$bp_location. \\(2 locations\\).*" \
|
||||||
|
"initial condition: set breakpoint"
|
||||||
|
|
||||||
# Set a breakpoint with multiple locations
|
gdb_run_cmd
|
||||||
# and a condition.
|
|
||||||
|
|
||||||
gdb_test "break $srcfile:$bp_location if i==1" \
|
set test "initial condition: run to breakpoint"
|
||||||
"Breakpoint.*at.*: $srcfile:$bp_location. \\(2 locations\\).*" \
|
gdb_test_multiple "" $test {
|
||||||
"initial condition: set breakpoint$workaround"
|
-re "Breakpoint \[0-9\]+,.*foo<int> \\(i=1\\).*$gdb_prompt $" {
|
||||||
|
pass $test
|
||||||
gdb_run_cmd
|
break
|
||||||
|
|
||||||
if {${workaround} == "" && [is_remote target]} {
|
|
||||||
setup_kfail breakpoints/13781 "*-*-*"
|
|
||||||
}
|
|
||||||
set test "initial condition: run to breakpoint$workaround"
|
|
||||||
gdb_test_multiple "" $test {
|
|
||||||
-re "Breakpoint \[0-9\]+,.*foo<int> \\(i=1\\).*$gdb_prompt $" {
|
|
||||||
pass $test
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user