- Jun 12, 2024
-
-
Marc-Olivier Andrez authored
Debugging Go code built without optimizations is easier, as mentioned on https://go.dev/doc/gdb#Introduction: > When you compile and link your Go programs with the gc toolchain on > Linux, macOS, FreeBSD or NetBSD, the resulting binaries contain DWARFv4 > debugging information that recent versions (≥7.5) of the GDB debugger > can use to inspect a live process or a core dump. > > Pass the '-w' flag to the linker to omit the debug information (for > example, go build -ldflags=-w prog.go). > > The code generated by the gc compiler includes inlining of function > invocations and registerization of variables. These optimizations can > sometimes make debugging with gdb harder. If you find that you need to > disable these optimizations, build your program using go build > -gcflags=all="-N -l". > > If you want to use gdb to inspect a core dump, you can trigger a dump > on a program crash, on systems that permit it, by setting > GOTRACEBACK=crash in the environment (see the runtime package > documentation for more info).
-
- Jun 04, 2024
-
-
Marc-Olivier Andrez authored
As mentioned on https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline and https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206, POSIX defines a line as > A sequence of zero or more non- <newline> characters plus a terminating <newline> > character. When a file does not terminate with an empty line, `Git` commands such as `git diff` show the message `No newline at end of file`. This commit adds a CI job `pre-commit` to enforce the formatting.
-
- May 27, 2024
-
-
Marc-Olivier Andrez authored
-
- Feb 11, 2022
-
-
Sergey Yakubov authored
-
- Dec 06, 2021
-
-
Sergey Yakubov authored
-
- Dec 03, 2021
-
-
Sergey Yakubov authored
-
- Nov 16, 2021
-
-
Sergey Yakubov authored
-
- Oct 20, 2021
-
-
Sergey Yakubov authored
-
- Sep 28, 2021
-
-
Sergey Yakubov authored
-
- Sep 08, 2021
-
-
Carsten Patzke authored
-
Carsten Patzke authored
-
- Aug 16, 2021
-
-
Carsten Patzke authored
-
- Aug 04, 2021
-
-
Carsten Patzke authored
-
- Jul 15, 2021
-
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
- Jul 06, 2021
-
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
- Jun 30, 2021
-
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
- Jun 22, 2021
-
-
Sergey Yakubov authored
-
- Jun 11, 2021
-
-
Sergey Yakubov authored
-
- Jun 09, 2021
-
-
Sergey Yakubov authored
-
- Jun 08, 2021
-
-
Sergey Yakubov authored
-
- May 28, 2021
-
-
Sergey Yakubov authored
-
- May 25, 2021
-
-
Sergey Yakubov authored
-
- May 17, 2021
-
-
Sergey Yakubov authored
-
- May 05, 2021
-
-
Sergey Yakubov authored
-
- Apr 01, 2021
-
-
Sergey Yakubov authored
-
- Mar 28, 2021
-
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
- Mar 24, 2021
-
-
Sergey Yakubov authored
-
- Mar 23, 2021
-
-
Sergey Yakubov authored
-
- Jan 05, 2021
-
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-
- Dec 16, 2020
-
-
Sergey Yakubov authored
-
Sergey Yakubov authored
-