• 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

修订版39a67dc4f7d032c78f031e2d101b9552f1a6b57f (tree)
时间2016-02-10 07:31:04
作者Keith Seitz <keiths@redh...>
CommiterKeith Seitz

Log Message

Enable/update legacy linespecs in MI.

MI is currently using string_to_event_location to enable the use of legacy
linespecs, but using this function (until this patchset) had the (as yet
unnoticed) side effect of allowing both MI and CLI representation for
explicit locations.

This patch simply changes MI to use the same legacy linespec functions
that the python and guile interpreters use. This eliminates the CLI syntax
for explicit locations (in MI).

gdb/ChangeLog

* mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
string_to_event_location_basic instead of string_to_event_location.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2016-02-09 Keith Seitz <keiths@redhat.com>
22
3+ * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
4+ string_to_event_location_basic instead of string_to_event_location.
5+
6+2016-02-09 Keith Seitz <keiths@redhat.com>
7+
38 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
49 leading whitespace and use string_to_event_location_basic instead
510 of new_linespec_location.
--- a/gdb/mi/mi-cmd-break.c
+++ b/gdb/mi/mi-cmd-break.c
@@ -341,7 +341,7 @@ mi_cmd_break_insert_1 (int dprintf, char *command, char **argv, int argc)
341341 }
342342 else
343343 {
344- location = string_to_event_location (&address, current_language);
344+ location = string_to_event_location_basic (&address, current_language);
345345 if (*address)
346346 {
347347 delete_event_location (location);