Repository navigation
Get Mactracker for macOS (Xojo) to its main window - #460
Merged
Merged
Conversation
Xojo apps walk their own stack with unw_getcontext, unw_init_local, unw_step and unw_get_reg.
…ons once Programs convert text a piece at a time, many thousands of times; looking each function up by name every call made Mactracker's database load crawl.
CoreFoundation doesn't check it in release builds, and Xojo passes one from a search that found nothing (location -1).
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.
Follows #452. Mactracker 8.3.2 for macOS (a Xojo app, x86_64).
Sources/PerrySystem/unwind.c, x86_64):unw_getcontext,unw_init_local,unw_step,unw_get_reg, following the frame-pointer chain. Xojo walks its own stack with them. Only IP, SP and RBP are reported; other registers giveUNW_EBADREG.UpgradeScriptInfoToTextEncoding: a Mac script code (0–32) is its encoding; "don't care" is Mac OS Roman. Language, region and font are ignored.CFStringCreateWithSubstring: clamps the range to the string instead of trapping. At start-up Xojo formats 16:40:50 UTC and searches for "11" and "40" to find the hour and minute; in UTC there's no "11", so it passes a range at -1. Release CoreFoundation doesn't check.Testing
On the HP laptop (Debian 13 container, x86_64):
CFStringCreateWithSubstring.Still logged as missing (continued past):
removeAllToolTips,setAlignment:range:,+[NSWindow windowNumbersWithOptions:],setAutorecalculatesKeyViewLoop:,disableSnapshotRestoration,setArrowsPosition:,NSBitsPerPixelFromDepth.