GNU Binutils with patches for OS216
Revisión | 61a7418ccb7c2de12d4c4df79e193f32db938a11 (tree) |
---|---|
Tiempo | 2015-05-15 05:11:41 |
Autor | Don Breazeal <donb@code...> |
Commiter | Don Breazeal |
Fix build gdbserver build errors on arm, mips, aarch64.
Fix build errors introduced by
https://sourceware.org/ml/gdb-patches/2015-05/msg00281.html, which
didn't account for the change of the name of the struct process_info
field 'private' to 'priv' made in
https://sourceware.org/ml/gdb-patches/2015-02/msg00829.html.
gdb/gdbserver/ChangeLog:
* linux-aarch64-low.c (aarch64_linux_new_fork): Change reference
to process_info.private to process_info.priv.
* linux-arm-low.c (arm_new_fork): Likewise.
* linux-mips-low.c (mips_linux_new_fork): Likewise.
@@ -1140,10 +1140,10 @@ aarch64_linux_new_fork (struct process_info *parent, | ||
1140 | 1140 | struct process_info *child) |
1141 | 1141 | { |
1142 | 1142 | /* These are allocated by linux_add_process. */ |
1143 | - gdb_assert (parent->private != NULL | |
1144 | - && parent->private->arch_private != NULL); | |
1145 | - gdb_assert (child->private != NULL | |
1146 | - && child->private->arch_private != NULL); | |
1143 | + gdb_assert (parent->priv != NULL | |
1144 | + && parent->priv->arch_private != NULL); | |
1145 | + gdb_assert (child->priv != NULL | |
1146 | + && child->priv->arch_private != NULL); | |
1147 | 1147 | |
1148 | 1148 | /* Linux kernel before 2.6.33 commit |
1149 | 1149 | 72f674d203cd230426437cdcf7dd6f681dad8b0d |
@@ -1159,7 +1159,7 @@ aarch64_linux_new_fork (struct process_info *parent, | ||
1159 | 1159 | in the end before detaching the forked off process, thus making |
1160 | 1160 | this compatible with older Linux kernels too. */ |
1161 | 1161 | |
1162 | - *child->private->arch_private = *parent->private->arch_private; | |
1162 | + *child->priv->arch_private = *parent->priv->arch_private; | |
1163 | 1163 | } |
1164 | 1164 | |
1165 | 1165 | /* Called when resuming a thread. |
@@ -720,17 +720,17 @@ arm_new_thread (struct lwp_info *lwp) | ||
720 | 720 | static void |
721 | 721 | arm_new_fork (struct process_info *parent, struct process_info *child) |
722 | 722 | { |
723 | - struct arch_process_info *parent_proc_info = parent->private->arch_private; | |
724 | - struct arch_process_info *child_proc_info = child->private->arch_private; | |
723 | + struct arch_process_info *parent_proc_info = parent->priv->arch_private; | |
724 | + struct arch_process_info *child_proc_info = child->priv->arch_private; | |
725 | 725 | struct lwp_info *child_lwp; |
726 | 726 | struct arch_lwp_info *child_lwp_info; |
727 | 727 | int i; |
728 | 728 | |
729 | 729 | /* These are allocated by linux_add_process. */ |
730 | - gdb_assert (parent->private != NULL | |
731 | - && parent->private->arch_private != NULL); | |
732 | - gdb_assert (child->private != NULL | |
733 | - && child->private->arch_private != NULL); | |
730 | + gdb_assert (parent->priv != NULL | |
731 | + && parent->priv->arch_private != NULL); | |
732 | + gdb_assert (child->priv != NULL | |
733 | + && child->priv->arch_private != NULL); | |
734 | 734 | |
735 | 735 | /* Linux kernel before 2.6.33 commit |
736 | 736 | 72f674d203cd230426437cdcf7dd6f681dad8b0d |
@@ -376,10 +376,10 @@ mips_linux_new_fork (struct process_info *parent, | ||
376 | 376 | struct mips_watchpoint *wp; |
377 | 377 | |
378 | 378 | /* These are allocated by linux_add_process. */ |
379 | - gdb_assert (parent->private != NULL | |
380 | - && parent->private->arch_private != NULL); | |
381 | - gdb_assert (child->private != NULL | |
382 | - && child->private->arch_private != NULL); | |
379 | + gdb_assert (parent->priv != NULL | |
380 | + && parent->priv->arch_private != NULL); | |
381 | + gdb_assert (child->priv != NULL | |
382 | + && child->priv->arch_private != NULL); | |
383 | 383 | |
384 | 384 | /* Linux kernel before 2.6.33 commit |
385 | 385 | 72f674d203cd230426437cdcf7dd6f681dad8b0d |
@@ -395,8 +395,8 @@ mips_linux_new_fork (struct process_info *parent, | ||
395 | 395 | in the end before detaching the forked off process, thus making |
396 | 396 | this compatible with older Linux kernels too. */ |
397 | 397 | |
398 | - parent_private = parent->private->arch_private; | |
399 | - child_private = child->private->arch_private; | |
398 | + parent_private = parent->priv->arch_private; | |
399 | + child_private = child->priv->arch_private; | |
400 | 400 | |
401 | 401 | child_private->watch_readback_valid = parent_private->watch_readback_valid; |
402 | 402 | child_private->watch_readback = parent_private->watch_readback; |