This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: add relative file name handling for linespecs
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Tom> || (HAS_DRIVE_SPEC (filename) && len - search_len == 2)
Eli> Yes, I think it will.
I ended up going with:
|| (HAS_DRIVE_SPEC (filename)
&& STRIP_DRIVE_SPEC (filename) == &filename[len - search_len]));
... because STRIP_DRIVE_SPEC exists already and this lets us avoid
hard-coding a "2" into the code here.
Tom