mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 02:54:25 +02:00
Debug: Initial configuration for QEMU
This commit is contained in:
@@ -119,6 +119,8 @@ class GDBClient(BaseProcess): # pylint: disable=too-many-instance-attributes
|
|||||||
cfg = initcfgs.GDB_STUTIL_INIT_CONFIG
|
cfg = initcfgs.GDB_STUTIL_INIT_CONFIG
|
||||||
elif "mspdebug" in server_exe:
|
elif "mspdebug" in server_exe:
|
||||||
cfg = initcfgs.GDB_MSPDEBUG_INIT_CONFIG
|
cfg = initcfgs.GDB_MSPDEBUG_INIT_CONFIG
|
||||||
|
elif "qemu" in server_exe:
|
||||||
|
cfg = initcfgs.GDB_QEMU_INIT_CONFIG
|
||||||
elif self.debug_options['require_debug_port']:
|
elif self.debug_options['require_debug_port']:
|
||||||
cfg = initcfgs.GDB_BLACKMAGIC_INIT_CONFIG
|
cfg = initcfgs.GDB_BLACKMAGIC_INIT_CONFIG
|
||||||
else:
|
else:
|
||||||
|
@@ -107,3 +107,18 @@ monitor erase
|
|||||||
$LOAD_CMDS
|
$LOAD_CMDS
|
||||||
pio_reset_halt_target
|
pio_reset_halt_target
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
GDB_QEMU_INIT_CONFIG = """
|
||||||
|
define pio_reset_halt_target
|
||||||
|
monitor system_reset
|
||||||
|
end
|
||||||
|
|
||||||
|
define pio_reset_target
|
||||||
|
pio_reset_halt_target
|
||||||
|
end
|
||||||
|
|
||||||
|
target extended-remote $DEBUG_PORT
|
||||||
|
$INIT_BREAK
|
||||||
|
$LOAD_CMDS
|
||||||
|
pio_reset_halt_target
|
||||||
|
"""
|
||||||
|
Reference in New Issue
Block a user