config/debug/gdb.in.cross
changeset 2703 bd2529ef6665
parent 2526 e5fb003a354c
child 2717 13df2720b374
     1.1 --- a/config/debug/gdb.in.cross	Mon Jun 27 21:03:40 2011 +0200
     1.2 +++ b/config/debug/gdb.in.cross	Sat Oct 08 22:57:21 2011 +0200
     1.3 @@ -33,4 +33,20 @@
     1.4        That way, you can share the cross-gdb without installing a toolchain
     1.5        on every machine that will be used to debug target programs.
     1.6  
     1.7 +config GDB_CROSS_PYTHON
     1.8 +    bool
     1.9 +    prompt "Enable python scripting"
    1.10 +    depends on CONFIGURE_has_python
    1.11 +    depends on ! GDB_CROSS_STATIC
    1.12 +    default y
    1.13 +    help
    1.14 +      Say 'y' if you want to use Python scripting inside gdb.
    1.15 +      Say 'n' if you do not want to.
    1.16 +      
    1.17 +      Beware that enabling Python scripting could render the gdb
    1.18 +      executable non-functional if you move it to another machine.
    1.19 +      Building a static gdb can help in this regard, although there
    1.20 +      have been reports of problems when linking gdb to the static
    1.21 +      libpython.a. This should be fixed in gdb >=7.3. YMMV.
    1.22 +      
    1.23  endif # GDB_CROSS