This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: implement ambiguous linespec proposal

On Tue, Nov 15, 2011 at 8:57 PM, Doug Evans <> wrote:
> On Mon, Nov 14, 2011 at 1:10 PM, Tom Tromey <> wrote:
>>>>>>> "Tom" == Tom Tromey <> writes:
>> Tom> Here is a refresh of this patch. ?This fixes the regressions noted by
>> Tom> Jan, but also changes ovsrch.exp not to assume that namespace lookups
>> Tom> are done.
>> Here is the final revision.

Another question while we're cleaning up linespecs, if I may.
The docs have this:

@item '@var{filename}'::@var{funcaddr}
Like @var{funcaddr} above, but also specifies the name of the source
file explicitly.  This is useful if the name of the function does not
specify the function unambiguously, e.g., if there are several
functions with identical names in different source files.

Is the double colon, ::, a typo?  I've only ever seen filename
delimited with a single colon.

I'm hoping we can trivially decide that a file name is present by
seeing a single colon.
[First trying "foo" in "foo::bar" as file, only afterwards to try it
as a class or a namespace if that fails is clumsy, and a perf issue.]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]