Re: Objective-C selector names in disassembly
Re: Objective-C selector names in disassembly
- Subject: Re: Objective-C selector names in disassembly
- From: Martin Wierschin via Cocoa-dev <email@hidden>
- Date: Sun, 3 Apr 2022 16:09:10 -0700
- Arc-authentication-results: i=1; rspamd-786f77c8d-gmnn5; auth=pass smtp.auth=dreamhost smtp.mailfrom=email@hidden
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1649027352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=+r1qUqdrHkEVyoCPaffDJeDw6au4diMVebK1y+myaSc=; b=IZ73u6eg4j0R2N3DxyibGRAxlbMFkUA0QGaBk6vYgiwH7aAyWf7hSF0OD5ihlHbGvZrmbT WmCZZ0GqE9FrHyodFzUT24yPYieGfnZbAI/uXRMzlEnE4Ikps9Q/5eEDbbSl9BpmqEg7Nd 9qB0xCaex+a3OztrdO3TTyDvOzr/VvinjHqygwk7G0D6iD/NNHcStbb8dUmL+qmfr53NoC ZgbDS0Jb2QllIfSxMX5Sq7Dw22VFjFFkhPfeThL/RNdLD1mtn+Z3vdg/lssWIg9elAah4u Z8xfcECuatN0Q1K8v6c3f7ku/aRDgiLBJekDzJre8J5gVPUeql/COy4xqFOEAQ==
- Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1649027352; a=rsa-sha256; cv=none; b=b8PMQmUdJJV8r0dYMhWx8AV9jlG0TUDHiiS4MoxP0ioazhYXvR/rwC/QQnikSw23FJ2Pjq DwOymYFcLihzV/pZBuL0ZzhGM/3QLF6jgc8OFvCHItqtyfrZrD2xRY9/7tSNbYYonB+S7q +ZmVyb70jKyuLtZEAx0AHwZ8rDrzinvIr9tiRVDgQGcrDyaKF4uroiSdQi8um1i/e3Mrmc /kB1Ph6c/HVVLqKg/FZmgb6aWYX8a/Rmk0cANqqF1TOkbRE9x09F/GtbXmY2wB4x609fLQ NTyW87luyLTZlYqaAYOCO0kcil9MKY3YiJLZWI3IfllpQSBsEDUVPxIdCSvTyQ==
I'm running my app's project in Xcode as normal, so that's a debug version. But
I'm interested in selector names for system frameworks, which are naturally
final release versions that are part of macOS.
~Martin
> On Apr 3, 2022, at 3:24 PM, Alex Zavatone <email@hidden> wrote:
>
> Yes. Are you disassembling a release version or a debug version?
>
>> On Apr 3, 2022, at 2:36 PM, Martin Wierschin via Cocoa-dev
>> <email@hidden> wrote:
>>
>> Hi everyone,
>>
>> I have a question that's been an irritating me for a long time. Is there any
>> way to get Xcode (or other tools) to show Objective-C selector names in
>> disassembled framework's code?
>>
>> Back in the good old days viewing assembly for any Obj-C method in Xcode
>> would automatically give you this information. Xcode would always show you
>> each selector's name (as a C string) alongside the SEL value in the assembly
>> listing, usually right before each call to objc_msgSend. This was incredibly
>> useful when you had to workaround Apple bugs, or just to poke around to see
>> how things were implemented.
>>
>> I forget when this changed. I know it was triggered by optimizations to the
>> Obj-C runtime. But not being able to see selector names is like being
>> blindfolded. Is there a good way to discover this information in the modern
>> runtime / toolchains?
>>
>> Thanks for any tips!
>>
>> ~Martin Wierschin
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden