binutils-gdb/gdb/testsuite/gdb.mi
Marc-Andre Laperle 51457a0578 Add -file-list-shared-libraries MI command
This change adds the MI equivalent for the "info sharedlibrary"
command. The command was already partially documented but ignored as
it was not implemented. The new MI command works similarly to the CLI
command, taking an optional regular expression as an argument and
outputting the library information.

I included a test for the new command in mi-solib.exp.

gdb/doc/ChangeLog:

	* gdb.texinfo (gdb/mi Symbol Query Commands): Document new MI
	command file-list-shared-libraries
	(GDB/MI Async Records): Update documentation of library-loaded with new
	field.

gdb/ChangeLog:

	* NEWS: Add an entry about new '-file-list-shared-libraries' command.
	* mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
	New function definition.
	* mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
	* mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
	New function declaration.
	* mi/mi-interp.c (mi_output_solib_attribs): New Function.
	* mi/mi-interp.h: New file.
	* solib.c (info_sharedlibrary_command): Replace for loop with
	ALL_SO_LIBS macro
	* solib.h (update_solib_list): New function declaration.
	(so_list_head): Move macro.
	* solist.h (ALL_SO_LIBS): New macro.

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-solib.exp (test_file_list_shared_libraries):
	New procedure.

Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-20 14:57:51 -04:00
..
ChangeLog-1999-2003
array.f update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
basics.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame-func.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame-main.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame.S update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb669.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb680.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb701.c
gdb701.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb792.cc
gdb792.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb2549.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-async-run.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-async-run.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-async.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-basics.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-break.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-breakpoint-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-catch-load-so.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-catch-load.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-catch-load.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-cli.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-cmd-error.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-cmd-param-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state-mt.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state-st.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-console.c
mi-console.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-detach.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-disassemble.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf-pending.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf-pending.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf-pendshr.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-editing.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-eval.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-exec-run.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-exit-code.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-exit-code.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-file-transfer.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-file.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-fill-memory.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-fullname-deleted.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-hack-cli.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-i-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-info-os.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-inheritance-syntax-error.cc
mi-inheritance-syntax-error.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-language.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-linespec-err-cp.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-linespec-err-cp.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-logging.exp Fix "-gdb-set logging redirect on" crash 2017-02-02 11:39:56 +00:00
mi-memory-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nonstop-exit.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nonstop.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-ns-stale-regcache.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nsintrall.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nsmoribund.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nsthrexec.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pending.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pending.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pendshr.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pendshr2.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pthreads.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-read-memory.c
mi-read-memory.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-record-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reg-undefined.S update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reg-undefined.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reg-undefined.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-regs.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-return.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reverse.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-simplerun.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-solib.exp Add -file-list-shared-libraries MI command 2017-03-20 14:57:51 -04:00
mi-stack.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stack.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-start.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-start.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stepi.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stepn.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stepn.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-syn-frame.c
mi-syn-frame.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-threads-interrupt.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-threads-interrupt.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-undefined-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-until.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-block.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-child-f.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-child.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-child.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-cp.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-cp.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-create-rtti.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-create-rtti.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-display.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-invalidate.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-list-children-invalid-grandchild.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-list-children-invalid-grandchild.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-rtti.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-rtti.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-vla-c99.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-vla-fortran.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-watch-nonstop.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-watch.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-amd64-entry-value.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-amd64-entry-value.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-amd64-entry-value.s update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-prompt.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-var-child.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
new-ui-mi-sync.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
new-ui-mi-sync.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
non-stop-exit.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
non-stop.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
ns-stale-regcache.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
nsintrall.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
nsmoribund.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
nsthrexec.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pending.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pendshr1.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pendshr2.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pr11022.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pr11022.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pthreads.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
solib-lib.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
solib-main.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
testcmds
until.c
user-selected-context-sync.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
user-selected-context-sync.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
var-cmd.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
vla.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
vla.f90 update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
watch-nonstop.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00