binutils-gdb/gdb/mi
Tom Tromey 32fa152e3b Fix crash in -stack-list-arguments
-stack-list-arguments will crash when stopped in an Ada procedure that
has an argument with a certain name ("_objectO" -- which can only be
generated by the compiler).  The bug occurs because lookup_symbol will
fail in this case.

This patch changes -stack-list-arguments to mirror what is done with
arguments elsewhere.  (As an aside, I don't understand why this lookup
is even needed, but I assume it is some stabs thing?)

In the longer term I think it would be good to share this code between
MI and the CLI.  However, due to the upcoming release, I preferred a
more local fix.

gdb/ChangeLog
2020-07-22  Tom Tromey  <tromey@adacore.com>

	* mi/mi-cmd-stack.c (list_args_or_locals): Use
	lookup_symbol_search_name.

gdb/testsuite/ChangeLog
2020-07-22  Tom Tromey  <tromey@adacore.com>

	* gdb.ada/mi_prot.exp: New file.
	* gdb.ada/mi_prot/pkg.adb: New file.
	* gdb.ada/mi_prot/pkg.ads: New file.
	* gdb.ada/mi_prot/prot.adb: New file.
2020-07-22 12:28:33 -06:00
..
ChangeLog-1999-2003
mi-cmd-break.c
mi-cmd-break.h
mi-cmd-catch.c
mi-cmd-disas.c
mi-cmd-env.c Make {get,set}_inferior_io_terminal inferior methods 2020-06-27 14:56:05 +01:00
mi-cmd-file.c Remove ALL_SO_LIBS and so_list_head 2020-05-08 14:21:22 -06:00
mi-cmd-info.c
mi-cmd-stack.c Fix crash in -stack-list-arguments 2020-07-22 12:28:33 -06:00
mi-cmd-target.c
mi-cmd-var.c gdb: remove TYPE_CODE macro 2020-05-14 13:46:38 -04:00
mi-cmds.c
mi-cmds.h
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Move event-loop.[ch] to gdbsupport/ 2020-04-13 14:10:04 -06:00
mi-interp.h
mi-main.c gdb: remove TYPE_CODE macro 2020-05-14 13:46:38 -04:00
mi-main.h
mi-out.c
mi-out.h
mi-parse.c
mi-parse.h
mi-symbol-cmds.c Change get_objfile_arch to a method on objfile 2020-04-18 08:35:04 -06:00