• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

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

修訂941319d15194580a047484a53f232d374dc2d712 (tree)
時間2016-03-18 23:39:09
作者Yao Qi <yao.qi@lina...>
CommiterYao Qi

Log Message

[spu] throw error when target_read_memory fails

I happen to see that 1 is returned in spu_software_single_step when
target_read_memory returns 1. It must be wrong. That patch changes
it to throwing an error. Note that I choose to throw error because I
find the code in the end of spu_software_single_step throws errors.

gdb:

2016-03-18 Yao Qi <yao.qi@linaro.org>

* spu-tdep.c (spu_software_single_step): Throw error when
target_read_memory fails.

Change Summary

差異

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
1+2016-03-18 Yao Qi <yao.qi@linaro.org>
2+
3+ * spu-tdep.c (spu_software_single_step): Throw error when
4+ target_read_memory fails.
5+
16 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
27
38 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
--- a/gdb/spu-tdep.c
+++ b/gdb/spu-tdep.c
@@ -1632,7 +1632,9 @@ spu_software_single_step (struct frame_info *frame)
16321632 pc = get_frame_pc (frame);
16331633
16341634 if (target_read_memory (pc, buf, 4))
1635- return 1;
1635+ throw_error (MEMORY_ERROR, _("Could not read instruction at %s."),
1636+ paddress (gdbarch, pc));
1637+
16361638 insn = extract_unsigned_integer (buf, 4, byte_order);
16371639
16381640 /* Get local store limit. */