binutils-gdb/gdb/python
Eli Zaretskii b2a426e2c5 Avoid compilation errors in MinGW native builds of GDB
The error is triggered by including python-internal.h, and the
error message is:

     In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
	      from build-gnulib/import/math.h:27,
	      from d:/usr/Python26/include/pyport.h:235,
	      from d:/usr/Python26/include/Python.h:58,
	      from python/python-internal.h:94,
	      from python/py-arch.c:24:
     d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
        using ::hypot;
	        ^~~~~

This happens because Python headers define 'hypot' to expand to
'_hypot' in the Windows builds.

gdb/ChangeLog:
2018-01-27  Eli Zaretskii  <eliz@gnu.org>

	* python/python-internal.h (_hypot) [__MINGW32__]: Define back to
	'hypoth'.  This avoids a compilation error.
2018-01-27 18:34:46 +02:00
..
lib/gdb Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-all-events.def Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-arch.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-auto-load.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-block.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-bpevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-breakpoint.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-cmd.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-continueevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-event-types.def Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-event.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-event.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-events.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-evtregistry.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-evts.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-exitedevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-finishbreakpoint.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-frame.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-framefilter.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-function.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-gdb-readline.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-inferior.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-infevents.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-infthread.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-instruction.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-instruction.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-lazy-string.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-linetable.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-newobjfileevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-objfile.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-param.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-prettyprint.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-progspace.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-record-btrace.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-record-btrace.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-record-full.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-record-full.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-record.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-record.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-ref.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-signalevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-stopevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-stopevent.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-symbol.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-symtab.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-threadevent.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-type.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-unwind.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-utils.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-value.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-varobj.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
py-xmethods.c Remove xmethod_worker::clone 2018-01-07 09:25:33 -05:00
python-config.py
python-internal.h Avoid compilation errors in MinGW native builds of GDB 2018-01-27 18:34:46 +02:00
python.c C++ify xmethod_worker, get rid of VEC(xmethod_worker_ptr) 2018-01-07 09:25:32 -05:00
python.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00