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

Erik Joelsson erikj at openjdk.org
Mon Dec 15 23:12:43 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! Thanks for fixing this.

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

Marked as reviewed by erikj (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28829#pullrequestreview-3580525444


More information about the build-dev mailing list