Debugger: Move CLIDebugerEditLine implementation into debugger/

This commit is contained in:
Vicki Pfau 2023-11-24 21:36:35 -08:00
parent ce4024a29e
commit b7284542bc
5 changed files with 10 additions and 4 deletions

View File

@ -539,14 +539,12 @@ if(USE_EDITLINE)
set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES})
endif()
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libedit2")
list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/editline/cli-el-backend.c")
else()
set(DEBUGGER_LIB "")
endif()
if(USE_GDB_STUB)
list(APPEND FEATURES GDB_STUB)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/gdb-stub.c)
endif()
source_group("Debugger" FILES ${DEBUGGER_SRC})

View File

@ -11,6 +11,14 @@ if(ENABLE_SCRIPTING)
list(APPEND SOURCE_FILES cli-debugger-scripting.c)
endif()
if(USE_EDITLINE)
list(APPEND SOURCE_FILES cli-el-backend.c)
endif()
if(USE_GDB_STUB)
list(APPEND SOURCE_FILES gdb-stub.c)
endif()
set(TEST_FILES
test/lexer.c
test/parser.c)

View File

@ -3,7 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "cli-el-backend.h"
#include <mgba/internal/debugger/cli-el-backend.h>
#include <mgba/core/config.h>
#include <mgba/core/version.h>

View File

@ -11,7 +11,7 @@
#include <mgba/internal/debugger/gdb-stub.h>
#endif
#ifdef USE_EDITLINE
#include "feature/editline/cli-el-backend.h"
#include <mgba/internal/debugger/cli-el-backend.h>
#endif
#ifdef ENABLE_SCRIPTING
#include <mgba/core/scripting.h>