binutils-gdb/gdb/mi
Simon Marchi 5bad317030 Fix -trace-save crash when argument is missing
-trace-save doesn't check whether an argument is passed, leading to a
segfault if you pass nothing.

I added a small test, which only tests the error conditions of
-trace-save.

gdb/ChangeLog:

	* mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
	before using it.

gdb/testsuite/ChangeLog:

	* gdb.trace/mi-trace-save.exp: New file.
2016-10-17 16:48:25 -04:00
..
ChangeLog-1999-2003
mi-cmd-break.c Enable/update legacy linespecs in MI. 2016-02-09 14:31:04 -08:00
mi-cmd-break.h
mi-cmd-catch.c
mi-cmd-disas.c
mi-cmd-env.c
mi-cmd-file.c
mi-cmd-info.c
mi-cmd-stack.c remove trivialy unused variables 2016-05-07 20:12:53 -04:00
mi-cmd-target.c
mi-cmd-var.c
mi-cmds.c Emit inferior, thread and frame selection events to all UIs 2016-10-03 16:54:58 -04:00
mi-cmds.h Make raw_stdout be per MI instance 2016-06-21 01:11:50 +01:00
mi-common.c
mi-common.h Make raw_stdout be per MI instance 2016-06-21 01:11:50 +01:00
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Emit inferior, thread and frame selection events to all UIs 2016-10-03 16:54:58 -04:00
mi-main.c Fix -trace-save crash when argument is missing 2016-10-17 16:48:25 -04:00
mi-main.h Emit inferior, thread and frame selection events to all UIs 2016-10-03 16:54:58 -04:00
mi-out.c
mi-out.h
mi-parse.c
mi-parse.h
mi-symbol-cmds.c