if {![have_spec foc] || ![have_spec 32bit]} { puts "\nThe Noux GDB scenario is supported on 32-bit Fiasco.OC only\n" exit 0 } source ${genode_dir}/repos/ports/run/noux_gdb.inc # # Uncomment the following line when working on the GDB source code. Otherwise, # the package may get recompiled, yet it does not get reinstalled into 'bin/'. # #exec rm -rf noux-pkg/[noux_gdb_pkg_name]/ bin/[noux_gdb_pkg_name]/ set build_components { core init drivers/timer noux lib/libc_noux drivers/uart server/terminal_mux server/terminal_crosslink server/terminal_log app/cli_monitor app/gdb_monitor } lappend build_components noux-pkg/[noux_gdb_pkg_name] lappend build_components test/gdb_monitor set gdb_target_binary_name test-gdb_monitor build $build_components # names of the binaries needed for the GDB monitor test set gdb_target_binaries { ld.lib.so libc.lib.so } lappend gdb_target_binaries ${gdb_target_binary_name} create_gdb_tar create_binary_and_source_tars "gdb_target" ${gdb_target_binaries} create_boot_directory append config { } # use kernel debugger as UART on Fiasco.OC append_if [have_spec foc] config { } append config { } # on Fiasco.OC the kdb_uart_drv is always UART 0 append_if [have_spec foc] config { } # on all other kernels, direct terminal_mux to UART 1 (Qemu stdio, see below) append_if [expr ![have_spec foc]] config { } append config { } append config " " append config { } install_config $config # # Boot modules # exec cp ${genode_dir}/repos/os/src/app/cli_monitor/gdb_command_config bin # generic modules set boot_modules { core init timer ld.lib.so noux terminal_mux terminal_crosslink libc.lib.so libm.lib.so libc_noux.lib.so ncurses.lib.so expat.lib.so libc_pipe.lib.so libc_terminal.lib.so cli_monitor gdb_monitor terminal_log gdb.tar gdb_command_config gdb_target.tar gdb_target-src.tar } lappend boot_modules ${gdb_target_binary_name} # platform-specific modules lappend_if [expr ![have_spec foc]] boot_modules uart_drv lappend_if [have_spec foc] boot_modules kdb_uart_drv set fiasco_serial_esc_arg "" build_boot_image $boot_modules append qemu_args " -nographic " run_genode_until forever exec rm bin/gdb.tar