• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

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

修订版b52323fa6f6d31f493d91a425c036075ecf05e14 (tree)
时间2008-09-05 20:50:57
作者Ulrich Weigand <uweigand@de.i...>
CommiterUlrich Weigand

Log Message

* 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.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
11 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
22
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+
311 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
412 (gnuv3_print_method_ptr): Use it.
513 (gnuv3_method_ptr_to_value): Likewise.
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -385,8 +385,8 @@ update_current_target (void)
385385 INHERIT (to_shortname, t);
386386 INHERIT (to_longname, t);
387387 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. */
390390 INHERIT (to_attach, t);
391391 INHERIT (to_post_attach, t);
392392 INHERIT (to_attach_no_wait, t);
@@ -784,7 +784,7 @@ unpush_target (struct target_ops *t)
784784 void
785785 pop_target (void)
786786 {
787- target_close (&current_target, 0); /* Let it clean up */
787+ target_close (target_stack, 0); /* Let it clean up */
788788 if (unpush_target (target_stack) == 1)
789789 return;
790790
@@ -799,12 +799,12 @@ pop_all_targets_above (enum strata above_stratum, int quitting)
799799 {
800800 while ((int) (current_target.to_stratum) > (int) above_stratum)
801801 {
802- target_close (&current_target, quitting);
802+ target_close (target_stack, quitting);
803803 if (!unpush_target (target_stack))
804804 {
805805 fprintf_unfiltered (gdb_stderr,
806806 "pop_all_targets couldn't find target %s\n",
807- current_target.to_shortname);
807+ target_stack->to_shortname);
808808 internal_error (__FILE__, __LINE__,
809809 _("failed internal consistency check"));
810810 break;