X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Flocation.h;h=e4058ed6bd9c530761ba5e7dcccf9c97a6fd4177;hb=4a422785822ec9302f681c8fbc6ba2cc35231b09;hp=fcfa8fb56967c9d236c2d96c5440deab006022a5;hpb=a20714ff39f621961151d0c204e89062ab2107eb;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/location.h b/gdb/location.h index fcfa8fb569..e4058ed6bd 100644 --- a/gdb/location.h +++ b/gdb/location.h @@ -1,5 +1,5 @@ /* Data structures and API for event locations in GDB. - Copyright (C) 2013-2017 Free Software Foundation, Inc. + Copyright (C) 2013-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -16,8 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef LOCATIONS_H -#define LOCATIONS_H 1 +#ifndef LOCATION_H +#define LOCATION_H + +#include "symtab.h" struct language_defn; struct event_location; @@ -220,11 +222,14 @@ extern event_location_up This function is intended to be used by CLI commands and will parse explicit locations in a CLI-centric way. Other interfaces should use string_to_event_location_basic if they want to maintain support for - legacy specifications of probe, address, and linespec locations. */ + legacy specifications of probe, address, and linespec locations. -extern event_location_up - string_to_event_location (const char **argp, - const struct language_defn *langauge); + MATCH_TYPE should be either WILD or FULL. If -q/--qualified is specified + in the input string, it will take precedence over this parameter. */ + +extern event_location_up string_to_event_location + (const char **argp, const struct language_defn *language, + symbol_name_match_type match_type = symbol_name_match_type::WILD); /* Like string_to_event_location, but does not attempt to parse explicit locations. MATCH_TYPE indicates how function names should @@ -282,4 +287,5 @@ extern int event_location_empty_p (const struct event_location *location); extern void set_event_location_string (struct event_location *location, const char *string); -#endif /* LOCATIONS_H */ + +#endif /* LOCATION_H */