RFR: 8373246: JDK-8351842 broke native debugging on Linux

Christoph Langer clanger at openjdk.org
Fri Dec 19 13:34:34 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.

Looks good also in our internal testing. Thanks for the reviews.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28829#issuecomment-3675103120


More information about the build-dev mailing list