]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/tracepoint.c
the "ambiguous linespec" series
[thirdparty/binutils-gdb.git] / gdb / tracepoint.c
index a2e2cd43a8efca82c8255a9a954f38ff959c33f1..e00538cc267c57d3421925c02564b6ae1ee032a1 100644 (file)
@@ -2456,7 +2456,7 @@ trace_find_line_command (char *args, int from_tty)
     }
   else
     {
-      sals = decode_line_spec (args, 1);
+      sals = decode_line_spec (args, DECODE_LINE_FUNFIRSTLINE);
       sal = sals.sals[0];
     }
   
@@ -2584,7 +2584,7 @@ scope_info (char *args, int from_tty)
     error (_("requires an argument (function, "
             "line or *addr) to define a scope"));
 
-  sals = decode_line_1 (&args, 1, NULL, 0, NULL);
+  sals = decode_line_1 (&args, DECODE_LINE_FUNFIRSTLINE, NULL, 0);
   if (sals.nelts == 0)
     return;            /* Presumably decode_line_1 has already warned.  */