From 39cf75f7e02e5d3e0080a7862cde324e378c69ea Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 29 Jun 2012 22:46:46 +0000 Subject: * linespec.c: #include "stack.h". (decode_line_with_current_source): Moved here from symtab.c and renamed from decode_line_spec. All callers updated. (decode_line_with_last_displayed): Moved here from breakpoint.c and renamed from decode_line_spec_1. All callers updated. * linespec.h (decode_line_with_current_source): Move declaration here from symtab.h and renamed from decode_line_spec. (decode_line_with_last_displayed): Move declaration here from symtab.h and renamed from decode_line_spec_1. * macrocmd.c: #include "linespec.h". * symtab.c: Remove #include "linespec.h". --- gdb/mi/mi-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/mi/mi-main.c') diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index d395731..dfb4892 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -2436,7 +2436,8 @@ mi_cmd_trace_find (char *command, char **argv, int argc) if (argc != 2) error (_("Line is required")); - sals = decode_line_spec (argv[1], DECODE_LINE_FUNFIRSTLINE); + sals = decode_line_with_current_source (argv[1], + DECODE_LINE_FUNFIRSTLINE); back_to = make_cleanup (xfree, sals.sals); sal = sals.sals[0]; -- cgit v1.1