Lines Matching refs:copy

18    You should have received a copy of the GNU General Public License
71 char *copy,
75 static int collect_methods (char *copy, struct type *t,
114 static struct symtabs_and_lines decode_dollar (char *copy,
120 static struct symtabs_and_lines decode_variable (char *copy,
129 char *copy,
664 char *copy;
768 copy = (char *) alloca (p - *argptr + 1);
769 memcpy (copy, *argptr, p - *argptr);
770 copy[p - *argptr] = '\000';
771 sym = lookup_symbol (copy, 0, VAR_DOMAIN, 0, &sym_symtab);
775 return symbol_found (funfirstline, canonical, copy, sym,
825 copy = (char *) alloca (p - *argptr + 1);
826 memcpy (copy, *argptr, p - *argptr);
827 copy[p - *argptr] = '\0';
829 && copy[0]
830 && copy[0] == copy[p - *argptr - 1]
831 && strchr (get_gdb_completer_quote_characters (), copy[0]) != NULL)
833 copy[p - *argptr - 1] = '\0';
834 copy++;
844 if (*copy == '$')
845 return decode_dollar (copy, funfirstline, default_symtab,
851 return decode_variable (copy, funfirstline, canonical,
1084 char *copy = NULL;
1097 copy = find_imps (file_symtab, block, *argptr, NULL, &i1, &i2);
1104 copy = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2);
1105 *argptr = copy;
1175 char *copy;
1308 /* Allocate our own copy of the substring between argptr and
1310 copy = (char *) alloca (p - *argptr + 1);
1311 memcpy (copy, *argptr, p - *argptr);
1312 copy[p - *argptr] = '\0';
1314 && copy[p - *argptr - 1]
1316 copy[p - *argptr - 1]) != NULL)
1317 copy[p - *argptr - 1] = '\0';
1319 /* At this point copy->"fun", p->"" */
1327 /* Look for copy as a method of sym_class. */
1328 /* At this point copy->"fun", sym_class is "AAA:inA",
1335 copy, t, sym_class);
1343 copy = (char *) alloca (p - saved_arg2 + 1);
1344 memcpy (copy, saved_arg2, p - saved_arg2);
1347 copy[p - saved_arg2] = '\000';
1352 sym = lookup_symbol (copy, 0, VAR_DOMAIN, 0, &sym_symtab);
1354 return symbol_found (funfirstline, canonical, copy, sym,
1358 up. The quotes are important if copy is empty. */
1361 copy);
1377 char *copy;
1383 copy = (char *) alloca (p - *argptr + 1);
1384 memcpy (copy, *argptr, p - *argptr);
1385 copy[p - *argptr] = 0;
1393 /* At this point p1->"::inA::fun", p->"inA::fun" copy->"AAA",
1396 return lookup_symbol (copy, 0, STRUCT_DOMAIN, 0,
1405 char *copy, struct type *t, struct symbol *sym_class)
1416 i1 = collect_methods (copy, t, sym_arr);
1447 if (is_operator_name (copy))
1449 tmp = (char *) alloca (strlen (copy + 3) + 9);
1451 strcat (tmp, copy + 3);
1454 tmp = copy;
1470 collect_methods (char *copy, struct type *t,
1475 if (destructor_name_p (copy, t))
1493 i1 = find_methods (t, copy, sym_arr);
1512 char *copy;
1520 copy = (char *) alloca (p - *argptr + 1);
1521 memcpy (copy, *argptr, p - *argptr);
1523 if (is_quote_enclosed && copy[p - *argptr - 1] == '"')
1524 copy[p - *argptr - 1] = 0;
1526 copy[p - *argptr] = 0;
1529 file_symtab = lookup_symtab (copy);
1544 error_silent ("No source file named %s.", copy);
1546 error ("No source file named %s.", copy);
1652 decode_dollar (char *copy, int funfirstline, struct symtab *default_symtab,
1666 p = (copy[1] == '$') ? copy + 2 : copy + 1;
1672 sscanf ((copy[1] == '$') ? copy + 2 : copy + 1, "%d", &index);
1673 valx = access_value_history ((copy[1] == '$') ? -index : index);
1683 sym = lookup_symbol (copy, 0, VAR_DOMAIN, 0, &sym_symtab);
1688 return symbol_found (funfirstline, canonical, copy, sym,
1692 msymbol = lookup_minimal_symbol (copy, NULL, NULL);
1699 valx = value_of_internalvar (lookup_internalvar (copy + 1));
1730 decode_variable (char *copy, int funfirstline, char ***canonical,
1739 sym = lookup_symbol (copy,
1747 return symbol_found (funfirstline, canonical, copy, sym,
1750 msymbol = lookup_minimal_symbol (copy, NULL, NULL);
1769 error_silent ("Function \"%s\" not defined.", copy);
1772 error ("Function \"%s\" not defined.", copy);
1786 symbol_found (int funfirstline, char ***canonical, char *copy,
1810 if (lookup_block_symbol (b, copy, NULL, VAR_DOMAIN) != NULL)
1811 build_canonical_line_spec (values.sals, copy, canonical);
1818 error ("\"%s\" is not a function", copy);
1836 error ("Line number not known for symbol \"%s\"", copy);