On Sat, 27 Jun 2026 15:02:35 GMT, Yasumasa Suenaga <[email protected]> wrote:

>> Is the following code appropriate?
>> Introduce `attachInternal()` in `LinuxDebuggerLocal` to call `attach0()`, 
>> then `LinuxAARCH64DebuggerLocal` overrides it to check PAC.
>> 
>> 
>> @Override
>> protected void attachInternal(int pid) throws DebuggerException) {
>>   super.attachInternal(pid); // call "attach0()" in super class 
>> (LinuxDebuggerLocal)
>>   if (pacEnabled()) {
>>     ((MachineDescriptionAArch64)d.getMachineDescription()).enablePAC();
>>   }
>> }
>
> We have to check PAC after attaching.

Or maybe add a platform specific API that you call after doing the attach0(), 
and just add the new code there.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/31669#discussion_r3486506829

Reply via email to