This is the mail archive of the gdb-patches@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]

Re: [RFA] Use watchpoint's language when re-parsing expression


> Andreas> The docs say that gdb is supposed to support C style casts in every
> Andreas> language.  Also, there is the {type} operator that is also supported in
> Andreas> every language.
[...]
> Finally, I'm not at all certain that C-style casts or the {type}
> operator can be added to the Rust expression parser without breaking
> something else.  And, that seems like a complex request just to unbreak
> what amount to an implementation detail.

FWIW, I also never noticed this, and I share the concerns about
making this a requirement for all languages. It really depends
on the language itself whether it's easy to implement such feature,
and I would hate for language parsers to be harder to maintain
just so we can provide a bit of a C-centric view to every language
we support.

I vote for downgrading the requirement and amending the documentation
instead.

-- 
Joel


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