This is the mail archive of the gdb-patches@sources.redhat.com 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] |
This is the first patch of a series of 3 that follow up on a discussion about making the word_break_characters language dependent. See: http://sources.redhat.com/ml/gdb-patches/2003-09/msg00399.html. The plan is as follow: 1. Add a new function in language: default_word_break_characters() 2. Add a new field la_word_break_characters in struct language_defn Update all instances of this structure to set this new field to default_word_break_characters. 3. Remove gdb_completer_word_break_characters and get_gdb_completer_word_break_characters. Replace them with either default_word_break_characters or the current_language la_word_break_characters. In the end, GDB's behavior is entirely identical. But it will allow Ada to define it's own set of word-break-characters, allowing it to fine-tune the completion mechanism. I divided this change in 3 patches to show the process I used, and to show that the changes are mostly mechanical (and hopefully correct :-). If necessary, I can break them up further (for instance patch3 can be broken up in two steps), or submit all 3 of them in one patch. Let me know. Attached is the first patch. 2003-10-01 J. Brobecker <brobecker@gnat.com> * language.h (default_word_break_characters): Add prototype. * language.c (default_word_break_characters): New function. Ok to apply? -- Joel
Attachment:
patch1.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |