gdbstub: Move GdbCmdParseEntry into a new header file
authorGustavo Romero <gustavo.romero@linaro.org>
Fri, 5 Jul 2024 08:40:38 +0000 (09:40 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 5 Jul 2024 11:35:01 +0000 (12:35 +0100)
commit133f202b19d8332de8d433c627fe6354e2ecf889
tree96b1b5022eeec3ecaaa96a0082c6d6b00f02f617
parent0ef6b12e5839667fa0cec4f463a95fef77b18fda
gdbstub: Move GdbCmdParseEntry into a new header file

Move GdbCmdParseEntry and its associated types into a separate header
file to allow the use of GdbCmdParseEntry and other gdbstub command
functions outside of gdbstub.c.

Since GdbCmdParseEntry and get_param are now public, kdoc
GdbCmdParseEntry and rename get_param to gdb_get_cmd_param.

This commit also makes gdb_put_packet public since is used in gdbstub
command handling.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240628050850.536447-3-gustavo.romero@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-32-alex.bennee@linaro.org>
gdbstub/gdbstub.c
gdbstub/internals.h
gdbstub/syscalls.c
gdbstub/system.c
gdbstub/user-target.c
gdbstub/user.c
include/gdbstub/commands.h [new file with mode: 0644]