• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修订版8e1542c8aaafc386ee25221360a2061f86e9da32 (tree)
时间2016-07-06 15:31:22
作者Markus Metzger <markus.t.metzger@inte...>
CommiterMarkus Metzger

Log Message

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

更改概述

差异

--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -1905,7 +1905,7 @@ record_full_goto_entry (struct record_full_entry *p)
19051905 registers_changed ();
19061906 reinit_frame_cache ();
19071907 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 ());
19091909 }
19101910
19111911 /* The "to_goto_record_begin" target method. */
--- a/gdb/testsuite/gdb.mi/mi-reverse.exp
+++ b/gdb/testsuite/gdb.mi/mi-reverse.exp
@@ -93,6 +93,7 @@ proc test_controlled_execution_reverse {} {
9393 global line_callee1_head line_callee1_body line_callee1_close
9494 global line_main_head line_main_body
9595 global line_main_hello line_main_callme_1
96+ global line_callme_body
9697
9798 # Test exec-reverse-finish
9899
@@ -166,6 +167,14 @@ proc test_controlled_execution_reverse {} {
166167 "" "main" "" \
167168 "basics.c" $line_main_body "" \
168169 "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"
169178 }
170179
171180 test_controlled_execution_reverse