• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂560f8d05a1d6b09305bac8e992c1a95367e9778e (tree)
時間2022-11-06 03:13:06
作者Tom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

Deprecate MI version 1

MI version 1 is long since obsolete. Rather than remove it
immediately (though I did send a patch for that), instead let's
deprecate it in GDB 13 and then remove it for GDB 14.

This version of the patch incorporates Simon's warning change, and
Luis' recommendation to mention the gdb versions here.

Change Summary

差異

--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,8 @@
33
44 *** Changes since GDB 12
55
6+* MI version 1 is deprecated, and will be removed in GDB 14.
7+
68 * GDB now supports dumping memory tag data for AArch64 MTE. It also supports
79 reading memory tag data for AArch64 MTE from core files generated by
810 the gcore command or the Linux kernel.
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -170,11 +170,16 @@ interp_set (struct interp *interp, bool top_level)
170170 if (interpreter_p != interp->name ())
171171 interpreter_p = interp->name ();
172172
173+ bool warn_about_mi1 = false;
174+
173175 /* Run the init proc. */
174176 if (!interp->inited)
175177 {
176178 interp->init (top_level);
177179 interp->inited = true;
180+
181+ if (streq (interp->name (), "mi1"))
182+ warn_about_mi1 = true;
178183 }
179184
180185 /* Do this only after the interpreter is initialized. */
@@ -184,6 +189,11 @@ interp_set (struct interp *interp, bool top_level)
184189 clear_interpreter_hooks ();
185190
186191 interp->resume ();
192+
193+ if (warn_about_mi1)
194+ warning (_("MI version 1 is deprecated in GDB 13 and "
195+ "will be removed in GDB 14. Please upgrade "
196+ "to a newer version of MI."));
187197 }
188198
189199 /* Look up the interpreter for NAME. If no such interpreter exists,