GNU Binutils with patches for OS216
修订版 | 8e1542c8aaafc386ee25221360a2061f86e9da32 (tree) |
---|---|
时间 | 2016-07-06 15:31:22 |
作者 | Markus Metzger <markus.t.metzger@inte...> |
Commiter | Markus Metzger |
record-full: signal record-goto stop
When changing the replay position call record_signal_goto_stop instead of
printing the new source location directly. This will signal the stop to
front-ends and have them print the source location.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
gdb/
* record-full.c (record_full_goto_entry): Call record_signal_goto_stop.
testsuite/
* gdb.mi/mi-reverse.exp: Test record goto begin/end.
Change-Id: Ibae2736eb0cd3c70ba7d99d18836575eb0d23f33
@@ -1905,7 +1905,7 @@ record_full_goto_entry (struct record_full_entry *p) | ||
1905 | 1905 | registers_changed (); |
1906 | 1906 | reinit_frame_cache (); |
1907 | 1907 | stop_pc = regcache_read_pc (get_current_regcache ()); |
1908 | - print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC, 1); | |
1908 | + record_signal_goto_stop (inferior_thread ()); | |
1909 | 1909 | } |
1910 | 1910 | |
1911 | 1911 | /* The "to_goto_record_begin" target method. */ |
@@ -93,6 +93,7 @@ proc test_controlled_execution_reverse {} { | ||
93 | 93 | global line_callee1_head line_callee1_body line_callee1_close |
94 | 94 | global line_main_head line_main_body |
95 | 95 | global line_main_hello line_main_callme_1 |
96 | + global line_callme_body | |
96 | 97 | |
97 | 98 | # Test exec-reverse-finish |
98 | 99 |
@@ -166,6 +167,14 @@ proc test_controlled_execution_reverse {} { | ||
166 | 167 | "" "main" "" \ |
167 | 168 | "basics.c" $line_main_body "" \ |
168 | 169 | "reverse-continue at main" |
170 | + | |
171 | + send_gdb "record goto end\n" | |
172 | + mi_expect_stop "" "callme" "\{name=\"i\",value=\"1\"\}" "basics.c" \ | |
173 | + $line_callme_body { "" "" "\\^done\r\n" } "record goto end" | |
174 | + | |
175 | + send_gdb "record goto begin\n" | |
176 | + mi_expect_stop "" "main" "" "basics.c" $line_main_body \ | |
177 | + { "" "" "\\^done\r\n" } "record goto begin" | |
169 | 178 | } |
170 | 179 | |
171 | 180 | test_controlled_execution_reverse |