After compiling a native image in debug mode, the .debug file is not kept in bazel-out/k8-dbg/bin. This leads gdb to report that no debug symbols are found.
However, running the command line printed when using the -s flag does retain the .debug file, so likely the .debug file is not being reported to bazel as an output and that causes bazel to remove it.
After compiling a native image in debug mode, the
.debugfile is not kept inbazel-out/k8-dbg/bin. This leads gdb to report that no debug symbols are found.However, running the command line printed when using the
-sflag does retain the.debugfile, so likely the.debugfile is not being reported to bazel as an output and that causes bazel to remove it.