Fixes in gdb_monitor_interactive/target_config.run

Fixes #4134
This commit is contained in:
Tomasz Gajewski 2021-05-03 17:16:56 +02:00 committed by Norman Feske
parent d66e55ec37
commit 23b21812dd
2 changed files with 10 additions and 10 deletions

View File

@ -62,8 +62,8 @@ set config {
<policy label_prefix="gdb_monitor" uart="1"/>
</config>
</start>
<start name="gdb_monitor" caps="200">
<resource name="RAM" quantum="8M"/>
<start name="gdb_monitor" caps="1000">
<resource name="RAM" quantum="9M"/>
<config>
<target name="test-gdb_monitor">
<config>
@ -71,7 +71,7 @@ set config {
<libc stdout="/dev/log" stderr="/dev/log"/>
</config>
</target>
<preserve name="RAM" quantum="4M"/>
<preserve name="RAM" quantum="5M"/>
<vfs>
<dir name="dev"> <log/> <terminal/> </dir>
<dir name="pipe"> <pipe/> </dir>
@ -97,7 +97,7 @@ proc binary_name_gdbserver_platform_lib_so { } {
set boot_modules {
core init timer
ld.lib.so libc.lib.so libm.lib.so vfs.lib.so stdcxx.lib.so
pc_uart_drv vfs_pipe.lib.so
pc_uart_drv posix.lib.so vfs_pipe.lib.so
gdb_monitor gdbserver_platform.lib.so test-gdb_monitor
}
@ -110,7 +110,7 @@ build_boot_image $boot_modules
set local_port 5555
# qemu config
append qemu_args " -nographic "
append qemu_args " -display none "
# connect comport 0 to stdio
append qemu_args " -serial stdio "
@ -146,7 +146,7 @@ append gdb_cmds {-ex "set interactive-mode auto" }
puts "command: [gdb] debug/ld.lib.so $gdb_cmds"
exec [terminal] -e "bash -lc \"[gdb] debug/ld.lib.so $gdb_cmds\"" &
exec [terminal] -e "bash -lc \'[gdb] debug/ld.lib.so $gdb_cmds\'" &
interact -i [output_spawn_id]

View File

@ -61,8 +61,8 @@ set config {
<policy label_prefix="gdb_monitor" uart="1"/>
</config>
</start>
<start name="gdb_monitor" caps="200">
<resource name="RAM" quantum="8M"/>
<start name="gdb_monitor" caps="1000">
<resource name="RAM" quantum="9M"/>
<config>
<target name="test-gdb_monitor_target_config">
<config>
@ -71,7 +71,7 @@ set config {
<test_config_subnode/>
</config>
</target>
<preserve name="RAM" quantum="3M"/>
<preserve name="RAM" quantum="5M"/>
<vfs>
<dir name="dev"> <log/> <terminal/> </dir>
<dir name="pipe"> <pipe/> </dir>
@ -144,7 +144,7 @@ append gdb_cmds [gdb_initial_breakpoint_cmds $gdb_target_binary]
# continue execution
append gdb_cmds {-ex "c" }
exec [terminal] -e "bash -lc \"[gdb] debug/ld.lib.so $gdb_cmds\"" &
exec [terminal] -e "bash -lc \'[gdb] debug/ld.lib.so $gdb_cmds\'" &
interact -i [output_spawn_id]