Add some debugging code for b/248724968.

Test: m
Bug: 248724968
Change-Id: Ia72b285ca40cfeaad166d528f1443893eedcfac2
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index c0d99b9..235cc3c 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -4775,6 +4775,12 @@
     return;  // nothing to process
   }
   const uint8_t* handlers_ptr = accessor.GetCatchHandlerData(0);
+  CHECK(method->GetDexFile()->IsInDataSection(handlers_ptr))
+      << method->PrettyMethod()
+      << "@" << method->GetDexFile()->GetLocation()
+      << "@" << reinterpret_cast<const void*>(handlers_ptr)
+      << " is_compact_dex=" << method->GetDexFile()->IsCompactDexFile();
+
   uint32_t handlers_size = DecodeUnsignedLeb128(&handlers_ptr);
   for (uint32_t idx = 0; idx < handlers_size; idx++) {
     CatchHandlerIterator iterator(handlers_ptr);