binutils-gdb/gdb/python
Tom Tromey f097f5ad80 Fix crash in "finish"
PR gdb/28155 notes a crash in "finish" that occurs with a particular
source file compiled by clang.

The bug is the typical gdb problem of a missing call to check_typedef.
clang emits a function whose return type is a typedef to void.
get_return_value asserts that the return type is not void, but the
callers were not using check_typedef first.

gdb/ChangeLog
2019-01-06  Tom Tromey  <tom@tromey.com>

	PR gdb/28155:
	* python/py-finishbreakpoint.c (bpfinishpy_init): Use
	check_typedef.
	* infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
	(print_return_value): Likewise.

gdb/testsuite/ChangeLog
2019-01-06  Tom Tromey  <tom@tromey.com>

	PR gdb/28155:
	* gdb.dwarf2/typedef-void-finish.exp: New file.
2019-01-06 09:31:51 -07:00
..
lib/gdb Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-all-events.def Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-arch.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-auto-load.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-block.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-bpevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-breakpoint.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-cmd.c Remove more uses of explicit reference counting in Python 2019-01-03 14:49:18 -07:00
py-continueevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-event-types.def Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-event.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-event.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-events.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-evtregistry.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-evts.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-exitedevent.c Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
py-finishbreakpoint.c Fix crash in "finish" 2019-01-06 09:31:51 -07:00
py-frame.c Style improvements in gdb/python 2019-01-02 09:32:06 -07:00
py-framefilter.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-function.c Remove more uses of explicit reference counting in Python 2019-01-03 14:49:18 -07:00
py-gdb-readline.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-inferior.c Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
py-infevents.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-infthread.c Change inferior_to_inferior_object to return a gdbpy_ref 2019-01-02 16:28:33 -07:00
py-instruction.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-instruction.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-lazy-string.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-linetable.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-newobjfileevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-objfile.c Remove more uses of explicit reference counting in Python 2019-01-03 14:49:18 -07:00
py-param.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-prettyprint.c Use a wrapper for PyErr_Fetch 2019-01-03 14:49:18 -07:00
py-progspace.c Remove more uses of explicit reference counting in Python 2019-01-03 14:49:18 -07:00
py-record-btrace.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-btrace.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-full.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record-full.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-record.c Simplify gdbpy_stop_recording 2019-01-03 14:49:18 -07:00
py-record.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-ref.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-signalevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-stopevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-stopevent.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-symbol.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-symtab.c Avoid questionable casts in py-symtab.c 2019-01-03 14:49:19 -07:00
py-threadevent.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-type.c Improve reference counting in py-type.c 2019-01-03 14:49:19 -07:00
py-unwind.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
py-utils.c Use a wrapper for PyErr_Fetch 2019-01-03 14:49:18 -07:00
py-value.c Remove more uses of explicit reference counting in Python 2019-01-03 14:49:18 -07:00
py-varobj.c Use a wrapper for PyErr_Fetch 2019-01-03 14:49:18 -07:00
py-xmethods.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
python-config.py configure uses incorrect link order when testing libpython 2018-05-04 10:08:09 -04:00
python-internal.h Use a wrapper for PyErr_Fetch 2019-01-03 14:49:18 -07:00
python.c Use a wrapper for PyErr_Fetch 2019-01-03 14:49:18 -07:00
python.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00