This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [commit#2] [patch#2] PR other/65366: Fix gdbhooks.py for GDB with Python3
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Phil Muldoon <pmuldoon at redhat dot com>, Jason Merrill <jason at redhat dot com>
- Date: Mon, 8 Jun 2015 15:43:29 +0200
- Subject: Re: [commit#2] [patch#2] PR other/65366: Fix gdbhooks.py for GDB with Python3
- Authentication-results: sourceware.org; auth=none
- References: <20150309214314 dot GA2650 at host1 dot jankratochvil dot net> <CAFiYyc12Pz6N2Wyc0QAc5zLBXHjD7Zrb9Yf1PsgT-SF4mXeM7A at mail dot gmail dot com> <20150603132659 dot GA6778 at host1 dot jankratochvil dot net> <CAFiYyc2_HOE20XaYSY5Rij3-Unwja4BY=snYjYgY0e7YMVpT6w at mail dot gmail dot com> <20150608133724 dot GA23793 at host1 dot jankratochvil dot net>
On Mon, Jun 8, 2015 at 3:37 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Mon, 08 Jun 2015 09:46:59 +0200, Richard Biener wrote:
>> adding a
>>
>> import sys
>>
>> makes it work fine though.
>
> I do not see the sys error with either FSF GDB HEAD or Fedora 22 GDB.
> I agree it probably should be there.
Yeah, I suspect you have other auto-loads that eventually import sys
(I suppose the different python modules are not isolated)
>
>> Thus, ok with also adding a imoprt sys.
>
> Done and checked in: r224223
Thanks.
>
> Jan