Skip to content

[modm_tools] GDB with OpenOCD backend does not work on Windows #591

@salkinium

Description

@salkinium

There are two issues:

  1. AttributeError: module 'os' has no attribute 'setsid' and AttributeError: module 'os' has no attribute 'killpg'. We use these to start and kill the OpenOCD process in the background of GDB. No clue how to fix that.
  2. /dev/null does not exist on Windows, however that can easily be fixed:
    if silent:
        null_file = "nul" if "Windows" in platform.platform() else "/dev/null"
        commands.append("log_output " + null_file)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions