Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdbstub: add const to send buffer #2958

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions system/gdbstub/gdbstub.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ static int gdb_monitor(FAR struct gdb_state_s *state, FAR const char *cmd)
#endif
}

static ssize_t gdb_send(FAR void *priv, FAR void *buf,
size_t len)
static ssize_t gdb_send(FAR void *priv, FAR const char *buf, size_t len)
{
int fd = *(FAR int *)priv;
size_t i = 0;

while (i < len)
{
ssize_t ret = write(fd, (FAR char *)buf + i, len - i);
ssize_t ret = write(fd, buf + i, len - i);
if (ret < 0)
{
return -errno;
Expand Down
Loading