From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91896 invoked by alias); 20 Oct 2017 18:05:48 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 91883 invoked by uid 89); 20 Oct 2017 18:05:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=HX-Yahoo-Newman-Property:ymail-3, H*r:NNFMP, explained, HContent-Transfer-Encoding:8bit X-HELO: sonic311-25.consmr.mail.gq1.yahoo.com Received: from sonic311-25.consmr.mail.gq1.yahoo.com (HELO sonic311-25.consmr.mail.gq1.yahoo.com) (98.137.65.206) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Oct 2017 18:05:46 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Fri, 20 Oct 2017 18:05:45 +0000 Received: from [127.0.0.1] by smtp114.sbc.mail.ne1.yahoo.com with NNFMP; 20 Oct 2017 18:05:43 -0000 X-Yahoo-SMTP: 0h0Q7euswBD_g.kcEqbzJWRFfrba801gq1M1 Subject: Re: Python and native gdb To: electricworry , crossgcc@sourceware.org References: From: Alexey Neyman Message-ID: <5d51a403-a37f-0c14-44e1-406b41006f34@att.net> Date: Fri, 20 Oct 2017 18:05:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00007.txt.bz2 You'd need to have the Python libraries built for target first and a special script as explained in gdb/configure.ac's description of --with-python: dnl There are several different values for --with-python: .... dnl /path/to/python/executable - dnl        Run python-config.py with this version of python to fetch the dnl        compilation parameters. dnl        NOTE: This needn't be the real python executable. dnl        In a cross-compilation scenario (build != host), this could be dnl        a shell script that provides what python-config.py provides for dnl        --ldflags, --includes, --exec-prefix. Crosstool-NG currently doesn't do that. Regards, Alexey. On 10/20/2017 03:48 AM, electricworry wrote: > Please could anyone advise, is it possible to build a Python enabled > Native GDB similar to the Cross GDB option that exists in > crosstool-ng? > > I've made a small change to 300-gdb.sh to add --with-python=python2 > for the native GDB build and I'm testing just now, so I guess I'll > find out later today. But I'm thinking it's less trivial than that and > there might be some extra work to be done. Am I right to be sceptical? > > Thanks. >