crash printing non-local variable from nested subprogram
[deliverable/binutils-gdb.git] / gdb / solib-frv.c
index f7ef38bc320e230d4b29ab5dfabc86585152d520..179974f24d94ad8033c22530dcbd81b6ecc628bc 100644 (file)
@@ -388,8 +388,8 @@ frv_current_sos (void)
              break;
            }
 
-         sop = xcalloc (1, sizeof (struct so_list));
-         sop->lm_info = xcalloc (1, sizeof (struct lm_info));
+         sop = XCNEW (struct so_list);
+         sop->lm_info = XCNEW (struct lm_info);
          sop->lm_info->map = loadmap;
          sop->lm_info->got_value = got_addr;
          sop->lm_info->lm_addr = lm_addr;
@@ -799,7 +799,7 @@ frv_relocate_main_executable (void)
 
   if (main_executable_lm_info)
     xfree (main_executable_lm_info);
-  main_executable_lm_info = xcalloc (1, sizeof (struct lm_info));
+  main_executable_lm_info = XCNEW (struct lm_info);
   main_executable_lm_info->map = ldm;
 
   new_offsets = xcalloc (symfile_objfile->num_sections,
This page took 0.023999 seconds and 4 git commands to generate.