< prev index next >

src/jdk.hotspot.agent/linux/native/libsaproc/libproc_impl.c

Print this page

        

@@ -222,10 +222,11 @@
   for (cnt = 0, sh = shbuf; cnt < ehdr.e_shnum; cnt++, sh++) {
     if (strcmp(".eh_frame", sh->sh_name + strtab) == 0) {
       lib->eh_frame.library_base_addr = lib->base;
       lib->eh_frame.v_addr = sh->sh_addr;
       lib->eh_frame.data = read_section_data(lib->fd, &ehdr, sh);
+      lib->eh_frame.size = sh->sh_size;
       break;
     }
   }
 
   free(strtab);
< prev index next >