This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[archer/tromey/python] python3 wchar_t
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Mon, 2 Feb 2015 23:46:36 +0100
- Subject: [archer/tromey/python] python3 wchar_t
- Authentication-results: sourceware.org; auth=none
Hi Phil,
for F-22/Rawhide we need to switch to Python3:
https://bugzilla.redhat.com/show_bug.cgi?id=1014549
But on F-21 or F-22:
# yum install python3-devel
$ cd archer-tromey-python
$ CFLAGS= ./configure --with-python=/usr/bin/python3
$ make
./python/python.c: In function ‘run_python_script’:
./python/python.c:1261:28: error: passing argument 2 of ‘PySys_SetArgv’ from incompatible pointer type [-Werror]
PySys_SetArgv (argc - 1, argv + 1);
/* Set up the Python argument vector and evaluate a script. This is
used to implement 'gdb -P'. */
run_python_script (int argc, char **argv)
PySys_SetArgv (argc - 1, argv + 1);
Primarily asking if the Fedora compatibility with 'gdb -P' is still required.
If yes then a patch is welcome or I can also fix that (mbstowcs()).
F-22 GDB will be only in DTS-4.0 (not DTS-3.x) so a backward compatibility for
DTS AFAIK should not be a concern.
Thanks,
Jan