Repository navigation
Conversation
With FEATURE_GDBJIT enabled, GDB never saw the JIT interface: - generate_exports_file passed all .src files to the version script generator, which only reads the first one (the second argument is a prefix). Concatenate multiple inputs first. - The generator scripts dropped a last line without a trailing newline, which gdbjit_unixexports.src had. - __jit_debug_register_code and __jit_debug_descriptor were hidden under -fvisibility=hidden, so the version script could not export them. Also fix the emitted ELF: the .debug_frame CIE return address column was 0 on all architectures, and .symtab had sh_info of 0. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
|
Tagging subscribers to this area: @agocke |
janvorli
reviewed
Nov 11, 2026
Member
Author
|
osx-x64 dead-lettered. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
FEATURE_GDBJITenabled, libcoreclr.so did not export__jit_debug_register_code/__jit_debug_descriptor, so GDB neverpicked up JIT'd code:
generate_exports_filepassed every.srcto the version scriptgenerator, which reads only the first file (the second argument is
a symbol prefix). Multiple inputs are now concatenated first.
-fvisibility=hidden; mark themDLLEXPORT.ELF output fixes:
.debug_frameCIE return address column was 0 on every arch(now rip/lr).
.symtabsh_infowas 0 (now 1).Tested on linux-x64 with GDB 17.1: method names resolve, pending
breakpoints arm when a method is JIT'd, and
btunwinds throughmanaged frames. Software breakpoints need
DOTNET_EnableWriteXorExecute=0(orhbreak), since JIT'd code ismapped shared read-execute.