GNU Binutils with patches for OS216
修订版 | b52323fa6f6d31f493d91a425c036075ecf05e14 (tree) |
---|---|
时间 | 2008-09-05 20:50:57 |
作者 | Ulrich Weigand <uweigand@de.i...> |
Commiter | Ulrich Weigand |
* target.c (update_current_target): Do not inherit to_open
or to_close.
(pop_target): Call target_close on target_stack instead
of current_target.
(pop_all_targets_above): Likewise.
@@ -1,5 +1,13 @@ | ||
1 | 1 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
2 | 2 | |
3 | + * target.c (update_current_target): Do not inherit to_open | |
4 | + or to_close. | |
5 | + (pop_target): Call target_close on target_stack instead | |
6 | + of current_target. | |
7 | + (pop_all_targets_above): Likewise. | |
8 | + | |
9 | +2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> | |
10 | + | |
3 | 11 | * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function. |
4 | 12 | (gnuv3_print_method_ptr): Use it. |
5 | 13 | (gnuv3_method_ptr_to_value): Likewise. |
@@ -385,8 +385,8 @@ update_current_target (void) | ||
385 | 385 | INHERIT (to_shortname, t); |
386 | 386 | INHERIT (to_longname, t); |
387 | 387 | INHERIT (to_doc, t); |
388 | - INHERIT (to_open, t); | |
389 | - INHERIT (to_close, t); | |
388 | + /* Do not inherit to_open. */ | |
389 | + /* Do not inherit to_close. */ | |
390 | 390 | INHERIT (to_attach, t); |
391 | 391 | INHERIT (to_post_attach, t); |
392 | 392 | INHERIT (to_attach_no_wait, t); |
@@ -784,7 +784,7 @@ unpush_target (struct target_ops *t) | ||
784 | 784 | void |
785 | 785 | pop_target (void) |
786 | 786 | { |
787 | - target_close (¤t_target, 0); /* Let it clean up */ | |
787 | + target_close (target_stack, 0); /* Let it clean up */ | |
788 | 788 | if (unpush_target (target_stack) == 1) |
789 | 789 | return; |
790 | 790 |
@@ -799,12 +799,12 @@ pop_all_targets_above (enum strata above_stratum, int quitting) | ||
799 | 799 | { |
800 | 800 | while ((int) (current_target.to_stratum) > (int) above_stratum) |
801 | 801 | { |
802 | - target_close (¤t_target, quitting); | |
802 | + target_close (target_stack, quitting); | |
803 | 803 | if (!unpush_target (target_stack)) |
804 | 804 | { |
805 | 805 | fprintf_unfiltered (gdb_stderr, |
806 | 806 | "pop_all_targets couldn't find target %s\n", |
807 | - current_target.to_shortname); | |
807 | + target_stack->to_shortname); | |
808 | 808 | internal_error (__FILE__, __LINE__, |
809 | 809 | _("failed internal consistency check")); |
810 | 810 | break; |