RFR: 8375241: Simplify --with-native-debug-symbols-level option implementation
Aleksey Shipilev
shade at openjdk.org
Wed Jan 14 11:49:02 UTC 2026
On Wed, 14 Jan 2026 11:41:53 GMT, Julian Waters <jwaters at openjdk.org> wrote:
>> make/autoconf/flags-cflags.m4 line 107:
>>
>>> 105:
>>> 106: # Debug info level should follow the debug format to be effective.
>>> 107: CFLAGS_DEBUG_SYMBOLS="-g -gdwarf-4 -g${NATIVE_DEBUG_SYMBOLS_LEVEL}"
>>
>> What is this supposed to fix/accomplish?
>
> Do you mean the addition of the plain -g or the -g with NATIVE_DEBUG_SYMBOLS_LEVEL appended to it? The former I just added for correctness, it's not strictly needed.
Yes, I am curious why do we need a plain `-g`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29214#discussion_r2690122775
More information about the build-dev
mailing list