Lines Matching refs:canonical
121 /* A canonical linespec represented as a symtab-related string.
165 /* The 'canonical' value passed to decode_line_full, or NULL. */
166 struct linespec_result *canonical;
168 /* Canonical strings that mirror the std::vector<symtab_and_line> result. */
289 struct linespec_result *canonical);
1051 symbol to use when constructing the new canonical name.
1054 canonical name for the SAL. */
1064 if (self->canonical)
1066 struct linespec_canonical_name *canonical;
1071 canonical = &self->canonical_names[sals->size () - 1];
1081 canonical->suffix = xstrprintf ("%s:%d", symname,
1084 canonical->suffix = xstrdup (symname);
1086 canonical->suffix = xstrprintf ("%d", sal->line).release ();
1087 canonical->symtab = sal->symtab;
1092 canonical->suffix = xstrdup (symname);
1094 canonical->suffix = xstrdup ("<unknown>");
1095 canonical->symtab = NULL;
1326 /* Convert CANONICAL to its string representation using
1330 canonical_to_fullform (const struct linespec_canonical_name *canonical)
1332 if (canonical->symtab == NULL)
1333 return canonical->suffix;
1335 return string_printf ("%s:%s", symtab_to_fullname (canonical->symtab),
1336 canonical->suffix);
1339 /* Given FILTERS, a list of canonical names, filter the sals in RESULT
1340 and store the result in SELF->CANONICAL. */
1353 const struct linespec_canonical_name *canonical;
1355 canonical = &self->canonical_names[j];
1356 std::string fullform = canonical_to_fullform (canonical);
1364 lsal.canonical = xstrdup (name);
1365 self->canonical->lsals.push_back (std::move (lsal));
1369 self->canonical->pre_expanded = 0;
1372 /* Store RESULT into SELF->CANONICAL. */
1380 lsal.canonical = NULL;
1382 self->canonical->lsals.push_back (std::move (lsal));
1427 in SELF->CANONICAL is set up properly. */
1441 gdb_assert (self->canonical != NULL);
1447 const struct linespec_canonical_name *canonical;
1450 canonical = &self->canonical_names[i];
1451 gdb_assert (canonical->suffix != NULL);
1453 std::string fullform = canonical_to_fullform (canonical);
1455 if (canonical->symtab == NULL)
1456 displayform = canonical->suffix;
1461 fn_for_display = symtab_to_filename_for_display (canonical->symtab);
1463 canonical->suffix);
1990 STATE->canonical. This function handles both linespec and explicit
1997 if (!state->canonical)
2001 state->canonical->locspec = ls->explicit_loc.clone ();
2003 = as_explicit_location_spec (state->canonical->locspec.get ());
2007 state->canonical->special_display = 1;
2303 if (!sals.empty () && state->canonical != NULL)
2304 state->canonical->pre_expanded = 1;
2439 If CANONICAL is non-NULL, store an array of strings containing the canonical
2441 line numbers or static functions without a filename yield a canonical
2654 struct linespec_result *canonical)
2663 self->canonical = canonical;
2677 struct linespec_result *canonical)
2685 default_symtab, default_line, canonical);
3095 if (PARSER_STATE (parser)->canonical != NULL)
3096 PARSER_STATE (parser)->canonical->locspec = locspec->clone ();
3134 int default_line, struct linespec_result *canonical,
3141 gdb_assert (canonical != NULL);
3152 default_line, canonical);
3164 gdb_assert (result.size () == 1 || canonical->pre_expanded);
3165 canonical->pre_expanded = 1;
3167 /* Arrange for allocated canonical names to be freed. */
3351 if (self->canonical)
3356 self->canonical->pre_expanded = 1;
3368 self->canonical->locspec
4423 xfree (lsal.canonical);