Skip to content

Commit 074a801

Browse files
Remove user_interface.h from gdbstub includes (#6862)
* Remove user_interface.h from gdbstub includes Avoid a warning by not including the unneeded "user_interface.h" from gdbstub.c. Leftover from original stub code from the SDK, this include is unnecessary in the Arduino core. * Add example to ensure gdbstub compiles in CI Ensure the same user_interface warning doesn't occur in the future by adding the example shown in the GDB docs to the CI build process.
1 parent cc6d346 commit 074a801

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <GDBStub.h>
2+
3+
void setup() {
4+
Serial.begin(115200);
5+
gdbstub_init();
6+
Serial.printf("Starting...\n");
7+
}
8+
9+
void loop() {
10+
static uint32_t cnt = 0;
11+
Serial.printf("%d\n", cnt++);
12+
delay(100);
13+
}

libraries/GDBStub/src/internal/gdbstub.c

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ OS-less SDK defines. Defines some headers for things that aren't in the include
6767
the xthal stack frame struct.
6868
*/
6969
#include "osapi.h"
70-
#include "user_interface.h"
7170

7271
void _xtos_set_exception_handler(int cause, void (exhandler)(struct XTensa_exception_frame_s *frame));
7372

0 commit comments

Comments
 (0)