diff --git a/repos/ports/run/debug_nitpicker.run b/repos/ports/run/debug_nitpicker.run index bd99e130cb..2c9d221abd 100644 --- a/repos/ports/run/debug_nitpicker.run +++ b/repos/ports/run/debug_nitpicker.run @@ -53,6 +53,7 @@ set config { + @@ -64,7 +65,7 @@ set config { - + @@ -77,9 +78,8 @@ set config { - - - + + @@ -156,12 +156,12 @@ puts "GDB monitor is up, starting GDB in a new terminal" source ${genode_dir}/repos/ports/run/gdb_monitor.inc -# GDB loads symbols from 'bin/ld.lib.so' +# GDB loads symbols from 'debug/ld.lib.so' if { [have_spec nova] } { - exec ln -sf ld-nova.lib.so bin/ld.lib.so + exec ln -sf ld-nova.lib.so debug/ld.lib.so } if { [have_spec foc] } { - exec ln -sf ld-foc.lib.so bin/ld.lib.so + exec ln -sf ld-foc.lib.so debug/ld.lib.so } set gdb_target_binary "nitpicker" @@ -175,9 +175,9 @@ append gdb_cmds [gdb_initial_breakpoint_cmds $gdb_target_binary] # ask the user for confirmations again append gdb_cmds {-ex "set interactive-mode auto" } -puts "command: [gdb] bin/ld.lib.so $gdb_cmds" +puts "command: [gdb] debug/ld.lib.so $gdb_cmds" -exec [terminal] -e "[gdb] bin/ld.lib.so $gdb_cmds" & +exec [terminal] -e "[gdb] debug/ld.lib.so $gdb_cmds" & interact -i [output_spawn_id] diff --git a/repos/ports/run/gdb_monitor.inc b/repos/ports/run/gdb_monitor.inc index 7b273f1559..b44e4bdad3 100644 --- a/repos/ports/run/gdb_monitor.inc +++ b/repos/ports/run/gdb_monitor.inc @@ -27,10 +27,10 @@ proc gdb_initial_breakpoint_cmds { target_binary_name } { append gdb_cmds {-ex "delete 1" } # load the symbols of the test application - append gdb_cmds "-ex \"file bin/$target_binary_name\" " + append gdb_cmds "-ex \"file debug/$target_binary_name\" " - # set search path for "sharedlibrary" to bin - append gdb_cmds {-ex "set solib-search-path bin" } + # set search path for "sharedlibrary" to debug + append gdb_cmds {-ex "set solib-search-path debug" } # load the symbols of loaded shared libraries append gdb_cmds {-ex "sharedlibrary" } diff --git a/repos/ports/run/gdb_monitor.run b/repos/ports/run/gdb_monitor.run index af36498cb7..defd62a6c7 100644 --- a/repos/ports/run/gdb_monitor.run +++ b/repos/ports/run/gdb_monitor.run @@ -65,20 +65,18 @@ set config { - + - - - + + - - - + + @@ -128,12 +126,9 @@ puts "GDB monitor is up, starting GDB" source ${genode_dir}/repos/ports/run/gdb_monitor.inc -# GDB loads symbols from 'bin/ld.lib.so' +# GDB loads symbols from 'debug/ld.lib.so' if { [have_spec nova] } { - exec ln -sf ld-nova.lib.so bin/ld.lib.so -} -if { [have_spec foc] } { - exec ln -sf ld-foc.lib.so bin/ld.lib.so + exec ln -sf ld-nova.lib.so debug/ld.lib.so } set gdb_target_binary "test-gdb_monitor" @@ -144,7 +139,7 @@ append gdb_cmds {-ex "target remote localhost:$local_port" } append gdb_cmds [gdb_initial_breakpoint_cmds $gdb_target_binary] # run GDB and redirect stderr to stdio to get the relevant output into the expect buffer -eval spawn [gdb] bin/ld.lib.so -n $gdb_cmds 2&>1 +eval spawn [gdb] debug/ld.lib.so -n $gdb_cmds 2&>1 set gdb_id [list $spawn_id $genode_id] puts "" diff --git a/repos/ports/run/gdb_monitor_interactive.run b/repos/ports/run/gdb_monitor_interactive.run index 2c9495bde9..cb397349a7 100644 --- a/repos/ports/run/gdb_monitor_interactive.run +++ b/repos/ports/run/gdb_monitor_interactive.run @@ -41,6 +41,7 @@ set config { + @@ -52,20 +53,18 @@ set config { - + - - - + + - - - + + @@ -115,12 +114,12 @@ puts "GDB monitor is up, starting GDB in a new terminal" source ${genode_dir}/repos/ports/run/gdb_monitor.inc -# GDB loads symbols from 'bin/ld.lib.so' +# GDB loads symbols from 'debug/ld.lib.so' if { [have_spec nova] } { - exec ln -sf ld-nova.lib.so bin/ld.lib.so + exec ln -sf ld-nova.lib.so debug/ld.lib.so } if { [have_spec foc] } { - exec ln -sf ld-foc.lib.so bin/ld.lib.so + exec ln -sf ld-foc.lib.so debug/ld.lib.so } set gdb_target_binary "test-gdb_monitor" @@ -134,9 +133,9 @@ append gdb_cmds [gdb_initial_breakpoint_cmds $gdb_target_binary] # ask the user for confirmations again append gdb_cmds {-ex "set interactive-mode auto" } -puts "command: [gdb] bin/ld.lib.so $gdb_cmds" +puts "command: [gdb] debug/ld.lib.so $gdb_cmds" -exec [terminal] -e "[gdb] bin/ld.lib.so $gdb_cmds" & +exec [terminal] -e "[gdb] debug/ld.lib.so $gdb_cmds" & interact -i [output_spawn_id] diff --git a/repos/ports/run/gdb_monitor_target_config.run b/repos/ports/run/gdb_monitor_target_config.run index 07d5c7235e..7e29fd663e 100644 --- a/repos/ports/run/gdb_monitor_target_config.run +++ b/repos/ports/run/gdb_monitor_target_config.run @@ -40,6 +40,7 @@ set config { + @@ -51,21 +52,19 @@ set config { - - + + - - - + + - - - + + @@ -114,12 +113,12 @@ puts "GDB monitor is up, starting GDB in a new terminal" source ${genode_dir}/repos/ports/run/gdb_monitor.inc -# GDB loads symbols from 'bin/ld.lib.so' +# GDB loads symbols from 'debug/ld.lib.so' if { [have_spec nova] } { - exec ln -sf ld-nova.lib.so bin/ld.lib.so + exec ln -sf ld-nova.lib.so debug/ld.lib.so } if { [have_spec foc] } { - exec ln -sf ld-foc.lib.so bin/ld.lib.so + exec ln -sf ld-foc.lib.so debug/ld.lib.so } set gdb_target_binary "test-gdb_monitor_target_config" @@ -133,7 +132,7 @@ append gdb_cmds [gdb_initial_breakpoint_cmds $gdb_target_binary] # continue execution append gdb_cmds {-ex "c" } -exec [terminal] -e "[gdb] bin/ld.lib.so $gdb_cmds" & +exec [terminal] -e "[gdb] debug/ld.lib.so $gdb_cmds" & interact -i [output_spawn_id] diff --git a/repos/ports/run/noux_gdb.inc b/repos/ports/run/noux_gdb.inc index f427450523..14cc9ff198 100644 --- a/repos/ports/run/noux_gdb.inc +++ b/repos/ports/run/noux_gdb.inc @@ -20,7 +20,7 @@ proc noux_gdb_pkg_name { } { # proc create_binary_tar { application_name application_binaries } { foreach application_binary ${application_binaries} { - exec tar ufv bin/${application_name}.tar -h -C bin ${application_binary} + exec tar ufv bin/${application_name}.tar -h -C debug ${application_binary} } } diff --git a/repos/ports/run/noux_gdb.run b/repos/ports/run/noux_gdb.run index 040576b70d..3572c59c18 100644 --- a/repos/ports/run/noux_gdb.run +++ b/repos/ports/run/noux_gdb.run @@ -48,12 +48,12 @@ append_platform_drv_build_components build $build_components -# GDB loads symbols from 'bin/ld.lib.so' +# GDB loads symbols from 'debug/ld.lib.so' if { [have_spec nova] } { - exec ln -sf ld-nova.lib.so bin/ld.lib.so + exec ln -sf ld-nova.lib.so debug/ld.lib.so } if { [have_spec foc] } { - exec ln -sf ld-foc.lib.so bin/ld.lib.so + exec ln -sf ld-foc.lib.so debug/ld.lib.so } # names of the binaries needed for the GDB monitor test @@ -143,29 +143,27 @@ append config { - + - - - } + + } append config " " append config { - - - + + - + @@ -177,8 +175,10 @@ append config { - - + } +append config " + " +append config { } append config " @@ -225,13 +225,13 @@ proc binary_name_gdbserver_platform_lib_so { } { } # generic modules -set boot_modules { +append boot_modules { core init timer ld.lib.so noux terminal 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 + posix.lib.so libc.lib.so libm.lib.so ncurses.lib.so expat.lib.so + libc_noux.lib.so libc_pipe.lib.so libc_terminal.lib.so gdb_monitor gdbserver_platform.lib.so test-gdb_monitor - gdb.tar test-gdb_monitor.tar test-gdb_monitor-src.tar -} + test-gdb_monitor.tar test-gdb_monitor-src.tar +} [noux_gdb_pkg_name].tar # platform-specific modules lappend_if [have_spec linux] boot_modules fb_sdl @@ -244,6 +244,4 @@ append_platform_drv_boot_modules build_boot_image $boot_modules - run_genode_until forever -