< prev index next >

src/share/vm/utilities/decoder.hpp

Print this page
rev 13529 : 8185712: [windows] Improve native symbol decoder
Reviewed-by:

@@ -113,10 +113,15 @@
   }
   static bool decode(address pc, char* buf, int buflen, int* offset, const void* base);
   static bool demangle(const char* symbol, char* buf, int buflen);
   static bool can_decode_C_frame_in_vm();
 
+  // Attempts to retrieve source file name and line number associated with a pc.
+  // If buf != NULL, points to a buffer of size buflen which will receive the
+  // file name. File name will be silently truncated if output buffer is too small.
+  static bool get_source_info(address pc, char* buf, size_t buflen, int* line);
+
   // shutdown shared instance
   static void shutdown();
 
   static void print_state_on(outputStream* st);
 
< prev index next >