Does support for hyphenated words need a new language implementation?

Simon Sobisch simonsobisch@gnu.org
Thu Apr 15 08:39:46 GMT 2021


Going through the list of supported languages I did not found any that 
supports that, but to use COBOL identifiers in GDB that's definitely 
something necessary.

Three related questions for now:

* Is it currently possible to also allow hyphenated words like SOME-VAR 
for GDB's completions? (With the default C language .complete() 
functions can return those in the list but GDB "breaks" those on 
hyphens.) If yes: How?

* If not: Would a patch for a "minimal" COBOL language be integrated in 
a "nearby" GDB version (implementing more or less nothing else than 
hyphenated words - I assume GDB would support that if the current 
language allows it).

* In general: Would it be possible to add this to an old version of GDB 
(= without recompile = changing [an "unused" language] / adding files to 
the installed GDB)?

Thanks for providing any pointers,
Simon


More information about the Gdb-patches mailing list