binutils-gdb/gdb/testsuite/gdb.compile
Pedro Alves e6ed716cd5 Migrate rest of compile commands to new options framework
As I was in the neighbourhood, I converted the other "compile"
subcommands to the new options framework too.  Specifically, "compile
code" and "compile file".

The user-visible changes are:

  - All abbreviations of "-raw" are accepted now, instead of just -r.
    Obviously that means "-ra" is now accepted.

  - Option completion now works.

  - "compile file" did not have a completer yet, and now it knows to
    complete on filenames.

  - You couldn't use "compile file" with a file named "-something".
    You can now, with "compile file -- -something".

gdb/ChangeLog:
2019-06-13  Pedro Alves  <palves@redhat.com>

	* compile/compile.c (struct compile_options): New.
	(compile_flag_option_def, compile_command_option_defs)
	(make_compile_options_def_group): New.
	(compile_file_command): Handle options with
	gdb::option::process_options.
	(compile_file_command_completer): New function.
	(compile_code_command): Handle options with
	gdb::option::process_options.
	(compile_code_command_completer): New function.
	(_initialize_compiler): Install completers for "compile code" and
	"compile file".  Mention available options in "compile code" and
	"compile code"'s help.
	* completer.c (advance_to_completion_word): New, factored out from
	...
	(advance_to_expression_complete_word_point): ... this.
	(advance_to_filename_complete_word_point): New.
	* completer.h (advance_to_filename_complete_word_point): New
	declaration.

gdb/testsuite/ChangeLog:
2019-06-13  Pedro Alves  <palves@redhat.com>

	* gdb.compile/compile.exp: Adjust expected output to option
	processing changes.
2019-06-13 00:18:33 +01:00
..
compile-constvar.S Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-constvar.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-anonymous.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-anonymous.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-array-decay.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-array-decay.exp [gdb/testsuite] Require c++11 where necessary 2019-05-21 16:32:41 +02:00
compile-cplus-inherit.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-inherit.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-member.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-member.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-method.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-method.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-mod.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-namespace.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-namespace.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-nested.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-nested.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-print.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-print.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-virtual.cc Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus-virtual.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-cplus.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-ifunc.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-ifunc.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-mod.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-nodebug.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-ops.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-ops.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-print.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-print.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-setjmp-mod.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-setjmp.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-setjmp.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-shlib.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-tls.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile-tls.exp Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
compile.exp Migrate rest of compile commands to new options framework 2019-06-13 00:18:33 +01:00