gdbstub: Minor style fix

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2024-06-26 15:57:11 +08:00 committed by Alan Carvalho de Assis
parent 6899add8e3
commit a14d94c548

View file

@ -1629,7 +1629,7 @@ static int gdb_debugpoint(FAR struct gdb_state_s *state, bool enable)
if (enable) if (enable)
{ {
ret = gdb_debugpoint_add(type, (FAR void *)addr, size, ret = gdb_debugpoint_add(type, (FAR void *)addr, size,
gdb_debugpoint_callback, state); gdb_debugpoint_callback, state);
} }
else else
{ {
@ -1665,7 +1665,7 @@ static int gdb_debugpoint(FAR struct gdb_state_s *state, bool enable)
static int gdb_step(FAR struct gdb_state_s *state) static int gdb_step(FAR struct gdb_state_s *state)
{ {
int ret = gdb_debugpoint_add(GDB_STOPREASON_STEPPOINT, NULL, 0, int ret = gdb_debugpoint_add(GDB_STOPREASON_STEPPOINT, NULL, 0,
gdb_debugpoint_callback, state); gdb_debugpoint_callback, state);
if (ret < 0) if (ret < 0)
{ {