mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-03 20:04:27 +02:00
Move debug client and server implementations to "process" folder
This commit is contained in:
@@ -148,7 +148,7 @@ def cli(ctx, project_dir, project_conf, environment, verbose, interface, __unpro
|
|||||||
inject_contrib_pysite()
|
inject_contrib_pysite()
|
||||||
|
|
||||||
# pylint: disable=import-outside-toplevel
|
# pylint: disable=import-outside-toplevel
|
||||||
from platformio.commands.debug.client import GDBClient, reactor
|
from platformio.commands.debug.process.client import GDBClient, reactor
|
||||||
|
|
||||||
client = GDBClient(project_dir, __unprocessed, debug_options, env_options)
|
client = GDBClient(project_dir, __unprocessed, debug_options, env_options)
|
||||||
client.spawn(configuration["gdb_path"], configuration["prog_path"])
|
client.spawn(configuration["gdb_path"], configuration["prog_path"])
|
||||||
|
13
platformio/commands/debug/process/__init__.py
Normal file
13
platformio/commands/debug/process/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Copyright (c) 2014-present PlatformIO <contact@platformio.org>
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
@@ -30,8 +30,8 @@ from platformio import app, fs, proc, telemetry, util
|
|||||||
from platformio.commands.debug import helpers
|
from platformio.commands.debug import helpers
|
||||||
from platformio.commands.debug.exception import DebugInvalidOptionsError
|
from platformio.commands.debug.exception import DebugInvalidOptionsError
|
||||||
from platformio.commands.debug.initcfgs import get_gdb_init_config
|
from platformio.commands.debug.initcfgs import get_gdb_init_config
|
||||||
from platformio.commands.debug.process import BaseProcess
|
from platformio.commands.debug.process.base import BaseProcess
|
||||||
from platformio.commands.debug.server import DebugServer
|
from platformio.commands.debug.process.server import DebugServer
|
||||||
from platformio.compat import hashlib_encode_data, is_bytes
|
from platformio.compat import hashlib_encode_data, is_bytes
|
||||||
from platformio.project.helpers import get_project_cache_dir
|
from platformio.project.helpers import get_project_cache_dir
|
||||||
|
|
@@ -22,7 +22,7 @@ from twisted.internet import reactor # pylint: disable=import-error
|
|||||||
from platformio import fs, util
|
from platformio import fs, util
|
||||||
from platformio.commands.debug.exception import DebugInvalidOptionsError
|
from platformio.commands.debug.exception import DebugInvalidOptionsError
|
||||||
from platformio.commands.debug.helpers import escape_gdbmi_stream, is_gdbmi_mode
|
from platformio.commands.debug.helpers import escape_gdbmi_stream, is_gdbmi_mode
|
||||||
from platformio.commands.debug.process import BaseProcess
|
from platformio.commands.debug.process.base import BaseProcess
|
||||||
from platformio.proc import where_is_program
|
from platformio.proc import where_is_program
|
||||||
|
|
||||||
|
|
@@ -41,5 +41,6 @@ class ManifestValidationError(ManifestException):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return (
|
return (
|
||||||
"Invalid manifest fields: %s. \nPlease check specification -> "
|
"Invalid manifest fields: %s. \nPlease check specification -> "
|
||||||
"https://docs.platformio.org/page/librarymanager/config.html" % self.messages
|
"https://docs.platformio.org/page/librarymanager/config.html"
|
||||||
|
% self.messages
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user