This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH V2 4/4] Enable/update legacy linespecs in MI.
- From: Keith Seitz <keiths at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 01 Feb 2016 14:10:11 -0800
- Subject: [PATCH V2 4/4] Enable/update legacy linespecs in MI.
- Authentication-results: sourceware.org; auth=none
- References: <20160201220928 dot 1415 dot 59039 dot stgit at valrhona dot uglyboxes dot com>
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.
---
gdb/mi/mi-cmd-break.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c
index ef3ce29..3d40629 100644
--- 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)
}
else
{
- location = string_to_event_location (&address, current_language);
+ location = string_to_event_location_basic (&address, current_language);
if (*address)
{
delete_event_location (location);