Skip to content

Instantly share code, notes, and snippets.

define hook-continue
unmaskint
end
define hook-run
unmaskint
end
define hook-next
unmaskint
textDocument/didOpen
Checking for syntax errors: file:///home/freddie/Elektronika/ARM/Projects/CWC-STM32F4-mono-graphic-keypad/main.cpp
update_file_if_needed: /home/freddie/Elektronika/ARM/Projects/CWC-STM32F4-mono-graphic-keypad/main.cpp
File added. Time stamp: 1521368902
About to fork
fork complete (parent process, child pid = 8203)
result=ignoring duplicate directory "/home/freddie/arm-none-eabi-gcc-7.3.0-180127/bin/../lib/gcc/../../lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/include/c++/7.3.0"
ignoring duplicate directory "/home/freddie/arm-none-eabi-gcc-7.3.0-180127/bin/../lib/gcc/../../lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/include/c++/7.3.0/arm-none-eabi/thumb/v7e-m/fpv4-sp/hard"
ignoring duplicate directory "/home/freddie/arm-none-eabi-gcc-7.3.0-180127/bin/../lib/gcc/../../lib/gcc/arm-none-eabi/7.3.0/../../../../arm-none-eabi/include/c++/7.3.0/backward"
ignoring duplicate directory "/home/freddie/arm-none-eabi-gcc-7.3.0-180127/bin/../lib/gcc/../../lib/gcc/arm-none-eabi/7.3.0
textDocument/didOpen
Checking for syntax errors: file:///home/freddie/test/cpp-parser/main.cpp
update_file_if_needed: /home/freddie/test/cpp-parser/main.cpp
About to fork
fork complete (parent process, child pid = 3359)
sending compilation args for /home/freddie/test/cpp-parser/main.cpp
include: /home/freddie/test/cpp-parser/folder-a
include: /usr/include/c++/7.3.0
include: /usr/include/c++/7.3.0/x86_64-pc-linux-gnu
include: /usr/include/c++/7.3.0/backward
__attribute__ ((noinline))
int nonTrivialFunction()
{
return 44;
}
int main()
{
int value;
__sync_bool_compare_and_swap(&value, 11, nonTrivialFunction());
#include "distortos/board/leds.hpp"
#include "distortos/chip/ChipOutputPin.hpp"
#include "distortos/StaticThread.hpp"
#include "distortos/ThisThread.hpp"
void blinkFunction(distortos::devices::OutputPin& led, std::chrono::milliseconds on,
std::chrono::milliseconds off)
{
@FreddieChopin
FreddieChopin / kconfig-frontends-HEAD.patch
Created April 6, 2017 06:13
Patch for kconfig-frontends (HEAD of git repository) that fixes build failure with gperf 3.1
diff --git a/Makefile.am b/Makefile.am
index 926bf11..65126c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,6 +43,7 @@ dist_EXTRA_libs_parser_libkconfig_parser_la_SOURCES = \
libs_parser_libkconfig_parser_la_CPPFLAGS = \
-DROOTMENU="\"$(root_menu)\"" \
-DCONFIG_=\"$(config_prefix)\" \
+ -DGPERF_LEN_TYPE="$(GPERF_LEN_TYPE)" \
$(intl_CPPFLAGS) \
@FreddieChopin
FreddieChopin / kconfig-frontends.patch
Created April 5, 2017 21:07
Patch for kconfig-frontends-3.12.0.0 that fixes build failure with gperf 3.1
diff -ruN kconfig-frontends-3.12.0.0/configure.ac kconfig-frontends-3.12.0.0-fixed/configure.ac
--- kconfig-frontends-3.12.0.0/configure.ac 2013-11-09 14:31:01.000000000 +0100
+++ kconfig-frontends-3.12.0.0-fixed/configure.ac 2017-04-05 22:44:36.140760000 +0200
@@ -238,6 +238,22 @@
AC_SUBST([AM_YFLAGS], ["-t -l -p zconf"])
#----------------------------------------
+# gperf 3.1 generates functions with 'size_t' instead of 'unsigned int'
+AC_MSG_CHECKING([for the type used in gperf declarations])
+echo "#include <string.h>" > conftest.gperf.c
/**
* \file
* \brief Linker script for STM32F103RB chip:
* - 131072 bytes of rom at 0x8000000;
* - 20480 bytes of ram at 0x20000000;
*
* \author Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
/**
* \file
* \brief Linker script for STM32F407VG chip:
* - 1048576 bytes of rom at 0x8000000;
* - 131072 bytes of ram at 0x20000000;
* - 4096 bytes of bkpsram at 0x40024000;
* - 65536 bytes of ccm at 0x10000000;
*
* \author Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
#include <stdint.h>
/*-----------------------------------------------------------------------------+
| global functions
+-----------------------------------------------------------------------------*/
/**
* \brief Gets registers from stack frame of exception handler.
*
* \param [in] stack_frame is a pointer to stack frame of exception