• 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

修訂692916105d13be0ca5588bf8aa94b8ba04239269 (tree)
時間2015-10-30 03:28:48
作者Henrik Wallin <henrik.wallin@wind...>
CommiterAntoine Tremblay

Log Message

gdbserver: Move pointer dereference to after assert checks.

gdb/gdbserver/ChangeLog:

* linux-arm-low.c (arm_new_thread): Move pointer dereference
to after assert checks.

Signed-off-by: Henrik Wallin <henrik.wallin@windriver.com>

Change Summary

差異

--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
1+2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
2+
3+ * linux-arm-low.c (arm_new_thread): Move pointer dereference
4+ to after assert checks.
5+
16 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
27
38 * proc-service.c (ps_pdread): Add/adjust casts.
--- a/gdb/gdbserver/linux-arm-low.c
+++ b/gdb/gdbserver/linux-arm-low.c
@@ -706,8 +706,8 @@ arm_new_thread (struct lwp_info *lwp)
706706 static void
707707 arm_new_fork (struct process_info *parent, struct process_info *child)
708708 {
709- struct arch_process_info *parent_proc_info = parent->priv->arch_private;
710- struct arch_process_info *child_proc_info = child->priv->arch_private;
709+ struct arch_process_info *parent_proc_info;
710+ struct arch_process_info *child_proc_info;
711711 struct lwp_info *child_lwp;
712712 struct arch_lwp_info *child_lwp_info;
713713 int i;
@@ -718,6 +718,9 @@ arm_new_fork (struct process_info *parent, struct process_info *child)
718718 gdb_assert (child->priv != NULL
719719 && child->priv->arch_private != NULL);
720720
721+ parent_proc_info = parent->priv->arch_private;
722+ child_proc_info = child->priv->arch_private;
723+
721724 /* Linux kernel before 2.6.33 commit
722725 72f674d203cd230426437cdcf7dd6f681dad8b0d
723726 will inherit hardware debug registers from parent