binutils-gdb/gdb/compile
Tom Tromey 54585eee2e Avoid crash in compile_to_object
PR 23672 points out a crash in compile_to_object.  This crash came in
during a C++-ization.  This patch avoids the crash.

The PR also points out another weird behavior in this code, but that
one requires some setup that I don't have here, and it seems to date
back to the introduction of the compile feature.  So, it isn't
addressed here.  I will leave the PR open so this bug isn't forgotten.

gdb/ChangeLog
2021-01-09  Tom Tromey  <tom@tromey.com>

	PR compile/23672
	* compile/compile.c (compile_to_object): Avoid crash when
	osabi_triplet_regexp returns NULL.
2021-01-09 11:38:41 -07:00
..
compile-c-support.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-c-symbols.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-c-types.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-c.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-cplus-symbols.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-cplus-types.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-cplus.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-internal.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-loc2c.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-load.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-load.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-run.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-run.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile.c Avoid crash in compile_to_object 2021-01-09 11:38:41 -07:00
compile.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gcc-c-plugin.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gcc-cp-plugin.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00