This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug gdb/17156] completion needs to handle parse errors better


https://sourceware.org/bugzilla/show_bug.cgi?id=17156

--- Comment #1 from dje at google dot com ---
Related issue, not sure it warrants a separate PR.

I don't see how the "return COMPLETE;" in

  else if (saw_structop)
    return COMPLETE;

in c-exp.y:lex_one_token can ever happen.
e.g. "struct foo ." or "struct ->" is a syntax error.

Presumably I'm missing something.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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