RFR: 8373246: JDK-8351842 broke native debugging on Linux
Thomas Stuefe
stuefe at openjdk.org
Tue Dec 16 07:46:51 UTC 2025
On Mon, 15 Dec 2025 16:15:49 GMT, Christoph Langer <clanger at openjdk.org> wrote:
> This change adds back debug symbols by default to non-product builds.
>
> Whether to add debug symbols to the images/bundles created in a build is controlled by the configure switch `--with-external-symbols-in-bundles`. Possible values are `full`, which will be the default setting for non-product builds, `none` which is the default for product builds and a special option `public` which is only supported on Windows and enables stripped debug files in JDK/JRE images and bundles that are smaller than full debug files but still allow function names to be displayed in, e.g. hs_err files.
>
> If `external-symbols-in-bundles` are turned on, they propagate into images and bundles through the jmod files.
> With that, some code of Bundles.gmk that took care of copying the right set of debug files is now obsolete and can be removed.
Works (confirmed both with debugging, and o.c. the debuginfo files are all there)
Patch looks fine, thank you!
-------------
Marked as reviewed by stuefe (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28829#pullrequestreview-3581756855
More information about the build-dev
mailing list