This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: implement ambiguous linespec proposal
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> It's not clear that the result of this is that we can programmatically
Doug> determine if a file name is present without having to go see if it's
Doug> present in the debug info.
Doug> Did you have something in mind?
Yeah, I don't think that is possible. I think all you can do without
digging around is perhaps split the linespec into tokens. Otherwise you
have to deal with cases like "FUNCTION:LABEL" differently; and proposed
syntax like an optional "OBJFILE:" prefix no longer makes sense.
If you are looking for some kind of precision in specifying linespecs, I
think implementing an argument form would be more fruitful:
break -objfile O -file F.c -function F
Then one can write exactly what one means in the situations that require
it.
Tom