gdb: Make use of 'add_info' to create info sub-commands.
[deliverable/binutils-gdb.git] / gdb / probe.c
index a3cfefe87c8e55896489477bd4ba0a29217cef93..5e95178f1e69ee5fea59b99fd98842de72414d7a 100644 (file)
@@ -146,9 +146,8 @@ parse_probes (const struct event_location *location,
              continue;
 
            ++result.nelts;
-           result.sals = xrealloc (result.sals,
-                                   result.nelts
-                                   * sizeof (struct symtab_and_line));
+           result.sals = XRESIZEVEC (struct symtab_and_line, result.sals,
+                                     result.nelts);
            sal = &result.sals[result.nelts - 1];
 
            init_sal (sal);
This page took 0.023907 seconds and 4 git commands to generate.