yann@96: # GDB menu yann@96: yann@96: menuconfig GDB yann@96: bool yann@96: prompt "gdb" yann@96: default n yann@96: help yann@96: Enable gdb for the target yann@96: yann@96: if GDB yann@96: yann@96: config GDB_CROSS yann@96: bool yann@96: prompt "Cross-gdb" yann@96: default y yann@583: select GDB_GDBSERVER yann@96: help yann@583: Build and install a cross-gdb for the target, to run on host. yann@96: yann@583: config GDB_CROSS_STATIC yann@457: bool yann@457: prompt "Build a static cross gdb" yann@457: default n yann@457: depends on GDB_CROSS yann@457: help yann@457: A static cross gdb can be usefull if you debug on a machine that is yann@583: not the one that is used to compile the toolchain. yann@457: yann@583: That way, you can share the cross-gdb without installing a toolchain yann@583: on every machine that will be used to debug target programs. yann@583: yann@583: config GDB_NATIVE yann@583: bool yann@583: prompt "Native gdb" yann@583: default n yann@583: help yann@583: Build and install a native gdb for the target, to run on the target. yann@583: yann@583: config GDB_NATIVE_STATIC yann@583: bool yann@583: prompt "Build a static native gdb" yann@583: default n yann@583: depends on GDB_NATIVE yann@583: help yann@583: In case you have trouble with dynamic loading of shared libraries, yann@583: you will find that a static gdb comes in handy. yann@583: yann@622: config GDB_NATIVE_USE_GMP_MPFR yann@622: bool yann@622: prompt "Use GMP and MPFR (EXPERIMENTAL)" yann@622: default n yann@622: depends on EXPERIMENTAL yann@622: depends on GDB_NATIVE yann@622: select GMP_MPFR yann@622: select GMP_MPFR_TARGET yann@622: help yann@622: gdb can make use of the GMP and MPFR libraries. yann@622: yann@622: While the cross-gdb (above) can use the libraries compiled for the yann@622: host, the native gdb needs the libraries for the target (where it will yann@622: eventually run). yann@622: yann@622: Setting this option will force building the GMP and MPFR libraries for yann@622: the target, and configure the native gdb to use them. yann@622: yann@583: config GDB_GDBSERVER yann@583: bool yann@583: prompt "gdbserver" yann@583: default n yann@583: help yann@583: Build and install a gdbserver for the target, to run on the target. yann@583: yann@583: config GDB_GDBSERVER_STATIC yann@175: bool yann@175: prompt "Build a static gdbserver" yann@622: default y yann@583: depends on GDB_GDBSERVER yann@175: help yann@175: In case you have trouble with dynamic loading of shared libraries, yann@175: you will find that a static gdbserver comes in handy. yann@175: yann@96: choice yann@96: bool yann@96: prompt "gdb version" yann@583: depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER yann@96: yann@96: config GDB_V_snapshot yann@96: bool yann@220: prompt "snapshot (EXPERIMENTAL)" yann@96: depends on EXPERIMENTAL yann@96: yann@96: config GDB_V_6_4 yann@96: bool yann@330: prompt "6.4 (OBSOLETE)" yann@96: depends on OBSOLETE yann@96: yann@96: config GDB_V_6_5 yann@96: bool yann@709: prompt "6.5 (OBSOLETE)" yann@709: depends on OBSOLETE yann@96: yann@96: config GDB_V_6_6 yann@96: bool yann@96: prompt "6.6" yann@96: yann@477: config GDB_V_6_7 yann@477: bool yann@477: prompt "6.7 (EXPERIMENTAL)" yann@477: depends on EXPERIMENTAL yann@477: yann@477: config GDB_V_6_7_1 yann@477: bool yann@477: prompt "6.7.1 (EXPERIMENTAL)" yann@477: depends on EXPERIMENTAL yann@477: yann@477: config GDB_V_6_8 yann@477: bool yann@639: prompt "6.8" yann@477: yann@96: # CT_INSERT_VERSION_ABOVE yann@96: # Don't remove above line! yann@96: endchoice yann@96: yann@96: config GDB_VERSION yann@96: string yann@96: default "snapshot" if GDB_V_snapshot yann@96: default "6.4" if GDB_V_6_4 yann@96: default "6.5" if GDB_V_6_5 yann@96: default "6.6" if GDB_V_6_6 yann@477: default "6.7" if GDB_V_6_7 yann@477: default "6.7.1" if GDB_V_6_7_1 yann@477: default "6.8" if GDB_V_6_8 yann@96: # CT_INSERT_VERSION_STRING_ABOVE yann@96: # Don't remove above line! yann@96: yann@573: if GDB_NATIVE yann@573: yann@573: comment "Native gdb needs the ncurses library on the target" yann@573: yann@573: choice yann@573: bool yann@573: prompt "ncurses version" yann@573: yann@573: config NCURSES_V_5_6 yann@573: bool yann@573: prompt "5.6" yann@573: yann@573: endchoice yann@573: yann@573: config NCURSES_VERSION yann@573: string yann@573: default "5.6" if NCURSES_V_5_6 yann@573: yann@583: endif # GDB_NATIVE --> ncurses yann@573: yann@96: endif