public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Python and native gdb
@ 2017-10-20 10:48 electricworry
  2017-10-20 18:05 ` Alexey Neyman
  0 siblings, 1 reply; 2+ messages in thread
From: electricworry @ 2017-10-20 10:48 UTC (permalink / raw)
  To: crossgcc

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Python and native gdb
  2017-10-20 10:48 Python and native gdb electricworry
@ 2017-10-20 18:05 ` Alexey Neyman
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Neyman @ 2017-10-20 18:05 UTC (permalink / raw)
  To: electricworry, crossgcc

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.
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-20 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20 10:48 Python and native gdb electricworry
2017-10-20 18:05 ` Alexey Neyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).