# # \brief Test for providing a config file to the target # \author Christian Prochaska # \date 2012-04-16 # # # Build # build { core init drivers/timer drivers/uart app/gdb_monitor test/gdb_monitor_target_config } create_boot_directory # # Generate config # set config { } install_config $config # # Boot modules # # generic modules set boot_modules { core init timer ld.lib.so libc.lib.so libc_log.lib.so libc_lock_pipe.lib.so libc_terminal.lib.so uart_drv gdb_monitor test-gdb_monitor_target_config } build_boot_image $boot_modules # # Execute test case # # set local_port 5555 # qemu config append qemu_args " -m 128 -nographic " # connect comport 0 to stdio append qemu_args " -serial mon:stdio " # connect comport 1 with TCP port $local_port append qemu_args " -serial chardev:uart " append qemu_args " -chardev socket,id=uart,port=$local_port,host=localhost,server,nowait " run_genode_until {.*Remote debugging using /dev/terminal.*} 30 puts "GDB monitor is up, starting GDB in a new terminal" # sequence of GDB commands to execute at startup set gdb_cmds "" append gdb_cmds "-ex \"target remote localhost:$local_port\" " # continue execution append gdb_cmds {-ex "c" } exec [terminal] -e "[gdb] bin/test-gdb_monitor_target_config $gdb_cmds" & interact # vi: set ft=tcl :