config/debug/gdb.in.cross
author Anthony Foiani <anthony.foiani@gmail.com>
Thu Apr 26 19:55:59 2012 -0600 (2012-04-26)
changeset 2939 58974be61289
parent 2784 258160822e35
child 3150 1d6fd9bde73c
permissions -rw-r--r--
Allow multi-word "install" command.

Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:

# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"

# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory

# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
yann@1849
     1
# Menu for the cross GDB
yann@96
     2
yann@2209
     3
config STATIC_TOOLCHAIN
yann@2209
     4
    select GDB_CROSS_STATIC if GDB_CROSS
yann@2209
     5
yann@96
     6
config GDB_CROSS
yann@96
     7
    bool
yann@96
     8
    prompt "Cross-gdb"
yann@96
     9
    default y
yann@850
    10
    select GDB_GDBSERVER if ! BARE_METAL
yann@96
    11
    help
yann@583
    12
      Build and install a cross-gdb for the target, to run on host.
yann@96
    13
yann@1849
    14
if GDB_CROSS
yann@1849
    15
yann@1915
    16
config GDB_CROSS_STATIC
yann@1915
    17
    bool
yann@1915
    18
    prompt "Build a static cross gdb"
yann@2717
    19
    select WANTS_STATIC_LINK
yann@1915
    20
    help
yann@1915
    21
      A static cross gdb can be usefull if you debug on a machine that is
yann@1915
    22
      not the one that is used to compile the toolchain.
yann@1915
    23
      
yann@1915
    24
      That way, you can share the cross-gdb without installing a toolchain
yann@1915
    25
      on every machine that will be used to debug target programs.
yann@1915
    26
zhenqiang@2856
    27
config GDB_CROSS_SIM
zhenqiang@2856
    28
    bool
zhenqiang@2856
    29
    prompt "Enable 'sim'"
zhenqiang@2856
    30
    depends on EXPERIMENTAL
zhenqiang@2856
    31
    help
zhenqiang@2856
    32
      Say 'y' here if you want to build the 'sim' emulator.
zhenqiang@2856
    33
      You probably don't want it, unless you are building for bare-metal.
zhenqiang@2856
    34
      The default is 'n'.
zhenqiang@2856
    35
yann@2703
    36
config GDB_CROSS_PYTHON
yann@2703
    37
    bool
yann@2703
    38
    prompt "Enable python scripting"
yann@2703
    39
    depends on ! GDB_CROSS_STATIC
yann@2703
    40
    default y
yann@2703
    41
    help
yann@2703
    42
      Say 'y' if you want to use Python scripting inside gdb.
yann@2703
    43
      Say 'n' if you do not want to.
yann@2703
    44
      
yann@2703
    45
      Beware that enabling Python scripting could render the gdb
yann@2703
    46
      executable non-functional if you move it to another machine.
yann@2703
    47
      Building a static gdb can help in this regard, although there
yann@2703
    48
      have been reports of problems when linking gdb to the static
yann@2703
    49
      libpython.a. This should be fixed in gdb >=7.3. YMMV.
zhenqiang@2784
    50
zhenqiang@2784
    51
config GDB_CROSS_EXTRA_CONFIG_ARRAY
zhenqiang@2784
    52
    string
zhenqiang@2784
    53
    prompt "Cross-gdb extra config"
zhenqiang@2784
    54
    default ""
zhenqiang@2784
    55
    help
zhenqiang@2784
    56
      Extra flags to pass onto ./configure when configuring the gdb cross.
zhenqiang@2784
    57
yann@1849
    58
endif # GDB_CROSS