old-cross-binutils/gdb/python
Tom Tromey f330038710 use explicit returns to avoid checker confusion
The checker does not understand the idiom

if (except.reason < 0) {
   do_cleanups (whatever);
   GDB_PY_HANDLE_EXCEPTION (except);
}

because it doesn't realize that the nested 'if' actually has the same
condition.

This fixes instances of this to be more explicit.

	* python/py-breakpoint.c (bppy_get_commands): Use
	explicit, unconditional return.
	* python/py-frame.c (frapy_read_var): Likewise.
	* python/python.c (gdbpy_decode_line): Likewise.
2013-05-30 17:30:03 +00:00
..
lib/gdb 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00
py-arch.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-auto-load.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-block.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-bpevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-breakpoint.c use explicit returns to avoid checker confusion 2013-05-30 17:30:03 +00:00
py-cmd.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-continueevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-event.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-event.h * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-events.h * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-evtregistry.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-evts.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-exitedevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-finishbreakpoint.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-frame.c use explicit returns to avoid checker confusion 2013-05-30 17:30:03 +00:00
py-framefilter.c 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00
py-function.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-gdb-readline.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-inferior.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-infthread.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-lazy-string.c * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. 2013-05-20 20:28:52 +00:00
py-newobjfileevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-objfile.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-param.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-prettyprint.c fix py-prettyprint.c 2013-05-30 17:17:25 +00:00
py-progspace.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-signalevent.c * python/py-arch.c (arch_object_type): Use 2013-05-20 20:09:01 +00:00
py-stopevent.c Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
py-stopevent.h Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
py-symbol.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-symtab.c * python/py-arch.c (gdbpy_initialize_arch): Use 2013-05-20 20:36:19 +00:00
py-threadevent.c * python/py-threadevent.c (get_event_thread): Use 2013-05-20 20:10:03 +00:00
py-type.c * python/py-type.c (typy_fields): Unconditionally decref 'r'. 2013-05-20 20:37:48 +00:00
py-utils.c py_decref: Don't check for NULL before calling Py_DECREF. 2013-05-21 20:53:21 +00:00
py-value.c fix py-value.c 2013-05-30 17:18:54 +00:00
python-config.py Add support for Python 3. 2012-12-12 16:47:30 +00:00
python-internal.h Fix build breakage with Python 2.4. 2013-05-30 08:56:56 +00:00
python.c use explicit returns to avoid checker confusion 2013-05-30 17:30:03 +00:00
python.h 2013-05-10 Phil Muldoon <pmuldoon@redhat.com> 2013-05-10 10:26:03 +00:00