• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

GNU Binutils with patches for OS216


コミットメタ情報

リビジョンa7425b5e70beee8a84e95f2f8d907d02c60dfd43 (tree)
日時2008-10-11 06:32:51
作者Michael Snyder <msnyder@vmwa...>
コミッターMichael Snyder

ログメッセージ

2008-10-10 Michael Snyder <msnyder@vmware.com>

* gdbfreeplay-back.c (handle_special_case): Add support for
running off the ends of the replay log ('E06').

2008-09-10 Michael Snyder <msnyder@vmware.com>

* gdbfreeplay-back.c (handle_special_case): Add support for
reverse debugging.

変更サマリ

差分

--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,13 @@
1+2008-10-10 Michael Snyder <msnyder@vmware.com>
2+
3+ * gdbfreeplay-back.c (handle_special_case): Add support for
4+ running off the ends of the replay log ('E06').
5+
6+2008-09-10 Michael Snyder <msnyder@vmware.com>
7+
8+ * gdbfreeplay-back.c (handle_special_case): Add support for
9+ reverse debugging.
10+
111 2008-06-25 Michael Snyder <msnyder@specifix.com>
212
313 * gdbfreeplay-back.c (frame_find_request): Rewrite loop to
--- a/gdb/gdbserver/gdbfreeplay-back.c
+++ b/gdb/gdbserver/gdbfreeplay-back.c
@@ -710,6 +710,7 @@ static char OK[8] = "$OK#9a";
710710 static char EMPTY[8] = "$#00";
711711 static char STOP[8] = "$S00#44";
712712 static char E01[8] = "$E01#a6";
713+static char E06[8] = "$E06#ab";
713714
714715 static char *
715716 handle_special_case (FILE *infile, int fd, char *request)
@@ -870,7 +871,12 @@ handle_special_case (FILE *infile, int fd, char *request)
870871 }
871872 else
872873 {
874+ /* Reached end of replay log. */
873875 cur_frame = last_cached_frame;
876+ gdb_ack (fd);
877+ if (verbose)
878+ fprintf (stdout, "Reached end of replay log.\n");
879+ return E06;
874880 }
875881
876882 /* Find the original event message for this stop event. */
@@ -906,13 +912,13 @@ handle_special_case (FILE *infile, int fd, char *request)
906912 }
907913 else
908914 {
909- /* WTF? */
915+ /* If we didn't find an event, we presumably ran off
916+ the end of the replay log. */
910917 gdb_ack (fd);
911- strcpy (inbuf, "$O5768617420746865206675636b3f");
912918 if (verbose)
913- fprintf (stdout, "WTF? %s\n", add_checksum (inbuf));
914- gdbwriteline (fd, add_checksum (inbuf));
919+ fprintf (stdout, "Reached beginning of replay log.\n");
915920 cur_frame = 0;
921+ return E06;
916922 }
917923
918924 /* Find the original event message for this stop event. */