Hi Joscha,

the 'gdb_monitor.run' script should work out of the box on foc_x86_32,
nova_x86_32 and (with one failing test) foc_pbxa9 on Qemu. I tried it
with your github branch and it worked for me after I removed the newly
added TCP redirection line from the run script.

The 'gdb_monitor_interactive_tcp.run' script works for me on these
platforms on Qemu with the attached patch.

For the HW platform, there might be some work to do on the base system
if there are problems with pausing and resuming of threads or with
getting the current register state. When trying to resume execution at a
specific instruction pointer or to modify register contents in general,
the base platform must support this. I'm not sure if the HW platform
already supports it (base-foc does, base-nova not yet).

Regards,
Christian

diff --git a/repos/ports/run/gdb_monitor_interactive_tcp.run b/repos/ports/run/gdb_monitor_interactive_tcp.run
index 23f4682..7e6bab2 100644
--- a/repos/ports/run/gdb_monitor_interactive_tcp.run
+++ b/repos/ports/run/gdb_monitor_interactive_tcp.run
@@ -9,7 +9,7 @@
 # Build
 #
 
-build {
+set build_components {
 	core init
 	drivers/timer drivers/nic
 	server/tcp_terminal
@@ -20,6 +20,8 @@ build {
 source ${genode_dir}/repos/base/run/platform_drv.inc
 append_platform_drv_build_components
 
+build $build_components
+
 create_boot_directory
 
 #
@@ -101,6 +103,8 @@ set boot_modules {
 	gdb_monitor test-gdb_monitor
 }
 
+append_platform_drv_boot_modules
+
 build_boot_image $boot_modules
 
 #
@@ -112,6 +116,8 @@ set local_port 5555
 # qemu config
 append qemu_args " -m 128 -nographic "
 append qemu_args " -net user -redir tcp:5555::5555"
+append_if [have_spec x86] qemu_args " -net nic,model=e1000 "
+append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 "
 
 # connect comport 0 to stdio
 #append qemu_args " -serial mon:stdio "
@@ -140,9 +146,9 @@ append gdb_cmds {-ex "set interactive-mode auto" }
 
 puts "command: [gdb] bin/$gdb_target_binary $gdb_cmds"
 
-run_genode_until {.*/dev/terminal.*} 50
+run_genode_until {.*got IP address.*} 50
 
-#exec [terminal] -e "[gdb] bin/test-gdb_monitor $gdb_cmds" &
+exec [terminal] -e "[gdb] bin/test-gdb_monitor $gdb_cmds" &
 
 interact -i [output_spawn_id]
 


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main

Reply via email to