while(true) { }
WDT will still fire.
Do you have some other case in mind? Can you post an example in that case?
Regarding the watchdog, I think the way to disable automatic WDT reset is to disassemble the SDK libraries (likely libmain.a), find a place where they call system_os_post(WDT_TASK, ..., ...);, and replace this call with NOPs.
Can you try doing that?