On Nov 27 14:04, Jeremy Drake via Cygwin-patches wrote:
> > > > On Tue, 26 Nov 2024, Corinna Vinschen wrote:
> > > >
> > > > > Btw...
> > > > >
> > > > > We're doing this because nobody being able to debug ARM64 assembler 
> > > > > came
> > > > > up with a piece of code checking the ntdll assembler code to find the
> > > > > address of the fast_cwd_pointer on ARM64.
> > > > >
> > > > > You seem to have the knowledge and the means to do that, Jeremy.
> > > > >
> > > > > Any fun tracking this down?
> 
> I decided to hack together a bit of an ugly proof-of-concept.  No error
> checking or validating that it's finding the right instructions, but it
> does work for native arm64, x86_64, and i686 on windows 10 22h2 (not
> x86_64 of course) and windows 11 23h2.  It doesn't work on 32-bit arm, but
> I'm sure nobody cares ;)
> 
> https://gist.github.com/jeremyd2019/aa167df0a0ae422fa6ebaea5b60c80c9

Nice!  If you feel confident to merge something like this into
Cygwin, feel free to send patches.


Thanks,
Corinna

Reply via email to