|
44 | 44 | * Pre-processor Definitions |
45 | 45 | ****************************************************************************/ |
46 | 46 |
|
47 | | -#ifdef CONFIG_LIB_GDBSTUB_DEBUG |
| 47 | +#ifdef CONFIG_LIBC_GDBSTUB_DEBUG |
48 | 48 | # define GDB_DEBUG(stat, ...) \ |
49 | 49 | lib_sprintf((FAR struct lib_outstream_s *)&state->stream, \ |
50 | 50 | ##__VA_ARGS__) |
|
54 | 54 | # define GDB_ASSERT() do {} while (0) |
55 | 55 | #endif |
56 | 56 |
|
57 | | -#define BUFSIZE CONFIG_LIB_GDBSTUB_PKTSIZE |
| 57 | +#define BUFSIZE CONFIG_LIBC_GDBSTUB_PKTSIZE |
58 | 58 |
|
59 | 59 | #define REPBIAS 29 |
60 | 60 | #define REPSIZE (255 - REPBIAS) |
|
77 | 77 | struct gdb_state_s |
78 | 78 | { |
79 | 79 | uint8_t running_regs[XCPTCONTEXT_SIZE]; /* Registers of running thread */ |
80 | | -#ifdef CONFIG_LIB_GDBSTUB_DEBUG |
| 80 | +#ifdef CONFIG_LIBC_GDBSTUB_DEBUG |
81 | 81 | struct lib_syslograwstream_s stream; |
82 | 82 | #endif |
83 | 83 | gdb_send_func_t send; /* Send buffer to gdb */ |
@@ -399,7 +399,7 @@ static int gdb_send_packet(FAR struct gdb_state_s *state) |
399 | 399 | return ret; |
400 | 400 | } |
401 | 401 |
|
402 | | -#ifdef CONFIG_LIB_GDBSTUB_DEBUG |
| 402 | +#ifdef CONFIG_LIBC_GDBSTUB_DEBUG |
403 | 403 | { |
404 | 404 | size_t p; |
405 | 405 |
|
@@ -590,7 +590,7 @@ static int gdb_recv_packet(FAR struct gdb_state_s *state) |
590 | 590 | return ret; |
591 | 591 | } |
592 | 592 |
|
593 | | -#ifdef CONFIG_LIB_GDBSTUB_DEBUG |
| 593 | +#ifdef CONFIG_LIBC_GDBSTUB_DEBUG |
594 | 594 | { |
595 | 595 | size_t p; |
596 | 596 |
|
@@ -2112,7 +2112,7 @@ FAR struct gdb_state_s *gdb_state_init(gdb_send_func_t send, |
2112 | 2112 | state->priv = priv; |
2113 | 2113 | state->monitor = monitor; |
2114 | 2114 |
|
2115 | | -#ifdef CONFIG_LIB_GDBSTUB_DEBUG |
| 2115 | +#ifdef CONFIG_LIBC_GDBSTUB_DEBUG |
2116 | 2116 | lib_syslograwstream_open(&state->stream); |
2117 | 2117 | #endif |
2118 | 2118 |
|
|
0 commit comments