binutils-gdb/gdb/python
Pedro Alves 9c6595ab68 Don't assume break/continue inside a TRY block works
In C++, this:

	try
	  {
	    break;
	  }
	catch (..)
	  {}

is invalid.  However, because our TRY/CATCH macros support it in C,
the C++ version of those macros support it too.  To catch such
assumptions, this adds a (disabled) hack that maps TRY/CATCH to raw
C++ try/catch.  Then it goes through all instances that building on
x86_64 GNU/Linux trips on, fixing them.

This isn't strictly necessary yet, but I think it's nicer to try to
keep the tree in a state where it's easier to eliminate the TRY/CATCH
macros.

gdb/ChangeLog:
2015-10-29  Pedro Alves  <palves@redhat.com>

	* dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
	assume that "break" breaks out of a TRY/CATCH.
	* python/py-framefilter.c (py_print_single_arg): Don't assume
	"continue" breaks out of a TRY/CATCH.
	* python/py-value.c (valpy_binop_throw): New function, factored
	out from ...
	(valpy_binop): ... this.
	(valpy_richcompare_throw): New function, factored
	out from ...
	(valpy_richcompare): ... this.
	* solib.c (solib_read_symbols): Don't assume "break" breaks out
	of a TRY/CATCH.
	* common/common-exceptions.h [USE_RAW_CXX_TRY]
	<TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
2015-10-29 12:55:01 +00:00
..
lib/gdb
py-arch.c
py-auto-load.c
py-block.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-bpevent.c
py-breakpoint.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-cmd.c
py-continueevent.c
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c
py-frame.c
py-framefilter.c Don't assume break/continue inside a TRY block works 2015-10-29 12:55:01 +00:00
py-function.c
py-gdb-readline.c
py-inferior.c Change some void* to gdb_byte* 2015-10-09 10:08:23 -04:00
py-infevents.c
py-infthread.c
py-lazy-string.c
py-linetable.c
py-newobjfileevent.c
py-objfile.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-param.c
py-prettyprint.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-progspace.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-symtab.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-threadevent.c
py-type.c Fix accessing a function's fields (parameters) from Python (PR 18073) 2015-10-21 15:57:22 -04:00
py-unwind.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-utils.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
py-value.c Don't assume break/continue inside a TRY block works 2015-10-29 12:55:01 +00:00
py-varobj.c
py-xmethods.c Add some more casts (2/2) 2015-09-25 14:08:07 -04:00
python-config.py
python-internal.h
python.c Add cast in python.c 2015-10-22 12:13:19 -04:00
python.h